The two address pass cannot handle two addr instructions where one incoming
authorChris Lattner <sabre@nondot.org>
Sun, 22 Feb 2004 04:44:58 +0000 (04:44 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 22 Feb 2004 04:44:58 +0000 (04:44 +0000)
commit6d2fdcfb8a922570d3a60540d36eb7804e7296f2
tree10e3c74a80de3728d4d8e2060180751e4cb3a698
parent7200c6b82acb8401048a2bc8a423f23b48db6731
The two address pass cannot handle two addr instructions where one incoming
value is a physreg and one is a virtreg.  For this reason, disable copy folding
entirely for physregs.  Also, use the new isMoveInstr target hook which gives us
folding of FP moves as well.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11700 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/PeepholeOptimizer.cpp
lib/Target/X86/X86PeepholeOpt.cpp