aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/SimplifyCFG/SpeculativeExec.ll
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2012-01-05 22:54:35 +0000
committerDan Gohman <gohman@apple.com>2012-01-05 22:54:35 +0000
commitdd35df15a296ca7a6722dc6eb04702e687652c45 (patch)
tree8f2343ab88333469bda0d34ca73a28b2e2157b66 /test/Transforms/SimplifyCFG/SpeculativeExec.ll
parent1031111f84a1e3377417b607ca45d5ec61e4e3c7 (diff)
downloadexternal_llvm-dd35df15a296ca7a6722dc6eb04702e687652c45.zip
external_llvm-dd35df15a296ca7a6722dc6eb04702e687652c45.tar.gz
external_llvm-dd35df15a296ca7a6722dc6eb04702e687652c45.tar.bz2
Revert r56315. When the instruction to speculate is a load, this
code can incorrectly move the load across a store. This never happens in practice today, but only because the current heuristics accidentally preclude it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147623 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/SimplifyCFG/SpeculativeExec.ll')
-rw-r--r--test/Transforms/SimplifyCFG/SpeculativeExec.ll2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Transforms/SimplifyCFG/SpeculativeExec.ll b/test/Transforms/SimplifyCFG/SpeculativeExec.ll
index 4fbb64a..a61867f 100644
--- a/test/Transforms/SimplifyCFG/SpeculativeExec.ll
+++ b/test/Transforms/SimplifyCFG/SpeculativeExec.ll
@@ -13,8 +13,8 @@ bb1: ; preds = %entry
%tmp2 = icmp sgt i32 %c, 1
br i1 %tmp2, label %bb2, label %bb3
; CHECK: bb1:
-; CHECK-NEXT: add i32 %a, 1
; CHECK-NEXT: icmp sgt i32 %c, 1
+; CHECK-NEXT: add i32 %a, 1
; CHECK-NEXT: select i1 %tmp2, i32 %tmp3, i32 %a
; CHECK-NEXT: br label %bb3