The X86FixupLEAs pass for Intel Atom must not call convertToThreeAddress
authorPreston Gurd <preston.gurd@intel.com>
Mon, 30 Sep 2013 23:18:42 +0000 (23:18 +0000)
committerPreston Gurd <preston.gurd@intel.com>
Mon, 30 Sep 2013 23:18:42 +0000 (23:18 +0000)
commit2967a804126c6081a18d8b75adf2d9fd5a3c096e
tree6822aa84c80c2c5b614c603f7a09dc72827f3077
parenta6d841561b1b7e3f32e1f77e35982d8cfd0f515e
The X86FixupLEAs pass for Intel Atom must not call convertToThreeAddress
on ADD16rr opcodes, if src1 != src, since that would cause
convertToThreeAddress to try to create a virtual register. This is not
permitted after register allocation, which is when the X86FixupLEAs pass
runs.

This patch fixes PR16785.

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