diff options
| author | Dan Gohman <gohman@apple.com> | 2012-01-05 22:54:35 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2012-01-05 22:54:35 +0000 |
| commit | 52672118990fbe2621dbdc2094b91c475e7ae871 (patch) | |
| tree | af55687140f2430cfa4eea6d89148abaa1da0ea4 /llvm/test/Transforms | |
| parent | 0c2c90b1ad5e4ac703a3d817c69ec87419ccf551 (diff) | |
| download | bcm5719-llvm-52672118990fbe2621dbdc2094b91c475e7ae871.tar.gz bcm5719-llvm-52672118990fbe2621dbdc2094b91c475e7ae871.zip | |
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.
llvm-svn: 147623
Diffstat (limited to 'llvm/test/Transforms')
| -rw-r--r-- | llvm/test/Transforms/SimplifyCFG/SpeculativeExec.ll | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/Transforms/SimplifyCFG/SpeculativeExec.ll b/llvm/test/Transforms/SimplifyCFG/SpeculativeExec.ll index 4fbb64a4582..a61867fe89c 100644 --- a/llvm/test/Transforms/SimplifyCFG/SpeculativeExec.ll +++ b/llvm/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 |

