PR13578: Teach MachineCSE that instructions that use a constant register can be CSE...
authorBenjamin Kramer <benny.kra@googlemail.com>
Sat, 11 Aug 2012 19:05:13 +0000 (19:05 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Sat, 11 Aug 2012 19:05:13 +0000 (19:05 +0000)
commitcfc0ad6e48fcbb5d9d7d97307e5b5df6bba53a97
tree24730fa558c42c12dd366c493121db779c3f2845
parentf4cfc4423cd48fd673e1de17aafe4db21e52f876
PR13578: Teach MachineCSE that instructions that use a constant register can be CSE'd safely.

This is common e.g. when doing rip-relative addressing on x86_64.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161728 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/MachineCSE.cpp
test/CodeGen/X86/lsr-loop-exit-cond.ll
test/CodeGen/X86/machine-cse.ll