Post-ra LICM should take care not to hoist an instruction that would clobber a
authorEvan Cheng <evan.cheng@apple.com>
Tue, 27 Mar 2012 01:50:58 +0000 (01:50 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Tue, 27 Mar 2012 01:50:58 +0000 (01:50 +0000)
commitd6c23557898b1fe9b21b28023f4133cab84a8b83
treeed8c1ad3228568f97ea536b20704ac0cef257114
parentbca9c25dabbf50923319339ae780d6f916f56bfb
Post-ra LICM should take care not to hoist an instruction that would clobber a
register that's read by the preheader terminator.

rdar://11095580

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153492 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/MachineLICM.cpp
test/CodeGen/X86/2012-03-26-PostRALICMBug.ll [new file with mode: 0644]