llvm/test/Transforms/Sink
Keno Fischer 5d860d251e [Sink] Fix predicate in legality check
Summary:
isSafeToSpeculativelyExecute is the wrong predicate to use here.
All that checks for is whether it is safe to hoist a value due to
unaligned/un-dereferencable accesses. However, not only are we doing
sinking rather than hoisting, our concern is that the location
we're loading from may have been modified. Instead forbid sinking
any load across a critical edge.

Reviewers: majnemer

Subscribers: davide, llvm-commits

Differential Revision: https://reviews.llvm.org/D33179

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@305102 91177308-0d34-0410-b5e6-96231b3b80d8
2017-06-09 19:31:10 +00:00
..
badloadsink.ll [Sink] Fix predicate in legality check 2017-06-09 19:31:10 +00:00
basic.ll PM: Port SinkingPass to the new pass manager 2016-04-22 19:54:10 +00:00
call.ll [Sink] Don't move calls to readonly functions across stores 2016-07-11 14:11:51 +00:00
catchswitch.ll
convergent.ll PM: Port SinkingPass to the new pass manager 2016-04-22 19:54:10 +00:00
fence.ll Add a testcase for r275581 2016-07-19 17:52:41 +00:00
landingpad.ll