summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/LICM/2003-05-02-LoadHoist.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/Transforms/LICM/2003-05-02-LoadHoist.ll')
-rw-r--r--llvm/test/Transforms/LICM/2003-05-02-LoadHoist.ll4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/test/Transforms/LICM/2003-05-02-LoadHoist.ll b/llvm/test/Transforms/LICM/2003-05-02-LoadHoist.ll
index 71d3e789aa0..2f94dff4efd 100644
--- a/llvm/test/Transforms/LICM/2003-05-02-LoadHoist.ll
+++ b/llvm/test/Transforms/LICM/2003-05-02-LoadHoist.ll
@@ -10,12 +10,12 @@
declare void @foo()
define i32 @test(i1 %c) {
- %A = load i32* @X ; <i32> [#uses=1]
+ %A = load i32, i32* @X ; <i32> [#uses=1]
br label %Loop
Loop: ; preds = %Loop, %0
call void @foo( )
;; Should not hoist this load!
- %B = load i32* @X ; <i32> [#uses=1]
+ %B = load i32, i32* @X ; <i32> [#uses=1]
br i1 %c, label %Loop, label %Out
Out: ; preds = %Loop
%C = sub i32 %A, %B ; <i32> [#uses=1]
OpenPOWER on IntegriCloud