diff options
Diffstat (limited to 'test/Transforms/LICM/hoist-deref-load.ll')
-rw-r--r-- | test/Transforms/LICM/hoist-deref-load.ll | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/test/Transforms/LICM/hoist-deref-load.ll b/test/Transforms/LICM/hoist-deref-load.ll index c230d1d..4d0ae45 100644 --- a/test/Transforms/LICM/hoist-deref-load.ll +++ b/test/Transforms/LICM/hoist-deref-load.ll @@ -12,7 +12,7 @@ target triple = "x86_64-unknown-linux-gnu" ; because the dereferenceable attribute is on %c. ; CHECK-LABEL: @test1 -; CHECK: load i32* %c, align 4 +; CHECK: load i32, i32* %c, align 4 ; CHECK: for.body: define void @test1(i32* noalias nocapture %a, i32* noalias nocapture readonly %b, i32* nocapture readonly nonnull dereferenceable(4) %c, i32 %n) #0 { @@ -22,15 +22,15 @@ entry: for.body: ; preds = %entry, %for.inc %indvars.iv = phi i64 [ %indvars.iv.next, %for.inc ], [ 0, %entry ] - %arrayidx = getelementptr inbounds i32* %a, i64 %indvars.iv - %0 = load i32* %arrayidx, align 4 + %arrayidx = getelementptr inbounds i32, i32* %a, i64 %indvars.iv + %0 = load i32, i32* %arrayidx, align 4 %cmp1 = icmp sgt i32 %0, 0 br i1 %cmp1, label %if.then, label %for.inc if.then: ; preds = %for.body - %1 = load i32* %c, align 4 - %arrayidx3 = getelementptr inbounds i32* %b, i64 %indvars.iv - %2 = load i32* %arrayidx3, align 4 + %1 = load i32, i32* %c, align 4 + %arrayidx3 = getelementptr inbounds i32, i32* %b, i64 %indvars.iv + %2 = load i32, i32* %arrayidx3, align 4 %mul = mul nsw i32 %2, %1 store i32 %mul, i32* %arrayidx, align 4 br label %for.inc @@ -50,7 +50,7 @@ for.end: ; preds = %for.inc, %entry ; CHECK-LABEL: @test2 ; CHECK: if.then: -; CHECK: load i32* %c, align 4 +; CHECK: load i32, i32* %c, align 4 define void @test2(i32* noalias nocapture %a, i32* noalias nocapture readonly %b, i32* nocapture readonly nonnull %c, i32 %n) #0 { entry: @@ -59,15 +59,15 @@ entry: for.body: ; preds = %entry, %for.inc %indvars.iv = phi i64 [ %indvars.iv.next, %for.inc ], [ 0, %entry ] - %arrayidx = getelementptr inbounds i32* %a, i64 %indvars.iv - %0 = load i32* %arrayidx, align 4 + %arrayidx = getelementptr inbounds i32, i32* %a, i64 %indvars.iv + %0 = load i32, i32* %arrayidx, align 4 %cmp1 = icmp sgt i32 %0, 0 br i1 %cmp1, label %if.then, label %for.inc if.then: ; preds = %for.body - %1 = load i32* %c, align 4 - %arrayidx3 = getelementptr inbounds i32* %b, i64 %indvars.iv - %2 = load i32* %arrayidx3, align 4 + %1 = load i32, i32* %c, align 4 + %arrayidx3 = getelementptr inbounds i32, i32* %b, i64 %indvars.iv + %2 = load i32, i32* %arrayidx3, align 4 %mul = mul nsw i32 %2, %1 store i32 %mul, i32* %arrayidx, align 4 br label %for.inc @@ -92,7 +92,7 @@ for.end: ; preds = %for.inc, %entry ; because the dereferenceable attribute is on %c. ; CHECK-LABEL: @test3 -; CHECK: load i32* %c2, align 4 +; CHECK: load i32, i32* %c2, align 4 ; CHECK: for.body: define void @test3(i32* noalias nocapture %a, i32* noalias nocapture readonly %b, i32* nocapture readonly dereferenceable(12) %c, i32 %n) #0 { @@ -102,16 +102,16 @@ entry: for.body: ; preds = %entry, %for.inc %indvars.iv = phi i64 [ %indvars.iv.next, %for.inc ], [ 0, %entry ] - %arrayidx = getelementptr inbounds i32* %a, i64 %indvars.iv - %0 = load i32* %arrayidx, align 4 + %arrayidx = getelementptr inbounds i32, i32* %a, i64 %indvars.iv + %0 = load i32, i32* %arrayidx, align 4 %cmp1 = icmp sgt i32 %0, 0 br i1 %cmp1, label %if.then, label %for.inc if.then: ; preds = %for.body - %c2 = getelementptr inbounds i32* %c, i64 2 - %1 = load i32* %c2, align 4 - %arrayidx3 = getelementptr inbounds i32* %b, i64 %indvars.iv - %2 = load i32* %arrayidx3, align 4 + %c2 = getelementptr inbounds i32, i32* %c, i64 2 + %1 = load i32, i32* %c2, align 4 + %arrayidx3 = getelementptr inbounds i32, i32* %b, i64 %indvars.iv + %2 = load i32, i32* %arrayidx3, align 4 %mul = mul nsw i32 %2, %1 store i32 %mul, i32* %arrayidx, align 4 br label %for.inc @@ -131,7 +131,7 @@ for.end: ; preds = %for.inc, %entry ; CHECK-LABEL: @test4 ; CHECK: if.then: -; CHECK: load i32* %c2, align 4 +; CHECK: load i32, i32* %c2, align 4 define void @test4(i32* noalias nocapture %a, i32* noalias nocapture readonly %b, i32* nocapture readonly dereferenceable(11) %c, i32 %n) #0 { entry: @@ -140,16 +140,16 @@ entry: for.body: ; preds = %entry, %for.inc %indvars.iv = phi i64 [ %indvars.iv.next, %for.inc ], [ 0, %entry ] - %arrayidx = getelementptr inbounds i32* %a, i64 %indvars.iv - %0 = load i32* %arrayidx, align 4 + %arrayidx = getelementptr inbounds i32, i32* %a, i64 %indvars.iv + %0 = load i32, i32* %arrayidx, align 4 %cmp1 = icmp sgt i32 %0, 0 br i1 %cmp1, label %if.then, label %for.inc if.then: ; preds = %for.body - %c2 = getelementptr inbounds i32* %c, i64 2 - %1 = load i32* %c2, align 4 - %arrayidx3 = getelementptr inbounds i32* %b, i64 %indvars.iv - %2 = load i32* %arrayidx3, align 4 + %c2 = getelementptr inbounds i32, i32* %c, i64 2 + %1 = load i32, i32* %c2, align 4 + %arrayidx3 = getelementptr inbounds i32, i32* %b, i64 %indvars.iv + %2 = load i32, i32* %arrayidx3, align 4 %mul = mul nsw i32 %2, %1 store i32 %mul, i32* %arrayidx, align 4 br label %for.inc |