Add dominance check for the instruction being hoisted.
authorDevang Patel <dpatel@apple.com>
Mon, 10 Oct 2011 19:09:20 +0000 (19:09 +0000)
committerDevang Patel <dpatel@apple.com>
Mon, 10 Oct 2011 19:09:20 +0000 (19:09 +0000)
commit9ac743a4ee61cb845bbe22a2f6898f38c2adafce
treec64733717dd89e7c30b5110cd18a084bc3726c04
parent5a57168a55f23cff1f0d1c7ba4183b4182665e46
Add dominance check for the instruction being hoisted.

For example, MachineLICM should not hoist a load that is not guaranteed to be executed.
Radar 10254254.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141569 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/MachineLICM.cpp
test/CodeGen/ARM/lsr-unfolded-offset.ll
test/CodeGen/X86/licm-dominance.ll [new file with mode: 0644]
test/CodeGen/X86/licm-nested.ll