diff options
Diffstat (limited to 'test/Transforms/LICM/hoisting.ll')
-rw-r--r-- | test/Transforms/LICM/hoisting.ll | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/Transforms/LICM/hoisting.ll b/test/Transforms/LICM/hoisting.ll index b4d297a..8609407 100644 --- a/test/Transforms/LICM/hoisting.ll +++ b/test/Transforms/LICM/hoisting.ll @@ -8,7 +8,7 @@ declare void @foo() ; potentially trapping instructions when they are not guaranteed to execute. define i32 @test1(i1 %c) { ; CHECK-LABEL: @test1( - %A = load i32* @X ; <i32> [#uses=2] + %A = load i32, i32* @X ; <i32> [#uses=2] br label %Loop Loop: ; preds = %LoopTail, %0 call void @foo( ) @@ -35,9 +35,9 @@ declare void @foo2(i32) nounwind ;; It is ok and desirable to hoist this potentially trapping instruction. define i32 @test2(i1 %c) { ; CHECK-LABEL: @test2( -; CHECK-NEXT: load i32* @X +; CHECK-NEXT: load i32, i32* @X ; CHECK-NEXT: %B = sdiv i32 4, %A - %A = load i32* @X ; <i32> [#uses=2] + %A = load i32, i32* @X ; <i32> [#uses=2] br label %Loop Loop: ;; Should have hoisted this div! @@ -54,7 +54,7 @@ Out: ; preds = %Loop define i32 @test3(i1 %c) { ; CHECK-LABEL: define i32 @test3( ; CHECK: call void @foo2(i32 6) - %A = load i32* @X ; <i32> [#uses=2] + %A = load i32, i32* @X ; <i32> [#uses=2] br label %Loop Loop: %B = add i32 4, 2 ; <i32> [#uses=2] |