24 lines · plain
1; RUN: opt < %s -S -codegenprepare -mtriple=x86_64-unknown-linux-gnu | FileCheck %s2 3define i64 @test.after(ptr addrspace(1) readonly align 8) {4; CHECK-LABEL: test.after5; CHECK: sunkaddr6entry:7 %.0 = getelementptr inbounds i8, ptr addrspace(1) %0, i64 88 br label %header9 10header:11 %addr.in.loop = phi ptr addrspace(1) [ %.0, %entry ], [ %.1, %header ]12 %local_2_ = phi i64 [ 0, %entry ], [ %.9, %header ]13 %.7 = load i32, ptr addrspace(1) %addr.in.loop, align 814 fence acquire15 %.1 = getelementptr inbounds i8, ptr addrspace(1) %0, i64 816 %.8 = sext i32 %.7 to i6417 %.9 = add i64 %local_2_, %.818 %not. = icmp sgt i64 %.9, 99919 br i1 %not., label %exit, label %header20 21exit:22 ret i64 %.923}24