Revert r56315. When the instruction to speculate is a load, this
authorDan Gohman <gohman@apple.com>
Thu, 5 Jan 2012 22:54:35 +0000 (22:54 +0000)
committerDan Gohman <gohman@apple.com>
Thu, 5 Jan 2012 22:54:35 +0000 (22:54 +0000)
commitdd35df15a296ca7a6722dc6eb04702e687652c45
tree8f2343ab88333469bda0d34ca73a28b2e2157b66
parent1031111f84a1e3377417b607ca45d5ec61e4e3c7
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
lib/Transforms/Utils/SimplifyCFG.cpp
test/Transforms/SimplifyCFG/SpeculativeExec.ll