RangeIsDefinedByCopyFromReg() should check for subreg_to_reg, insert_subreg,
authorEvan Cheng <evan.cheng@apple.com>
Wed, 4 Nov 2009 08:33:14 +0000 (08:33 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Wed, 4 Nov 2009 08:33:14 +0000 (08:33 +0000)
commit50608bac2fe1d3eb4753b6acdac06292eae7b980
tree76dcda10f604a3434c932f194b3bbf653d3402f8
parent092543ca71e3d837f1be3cf009ba126f3d7085e5
RangeIsDefinedByCopyFromReg() should check for subreg_to_reg, insert_subreg,
and extract_subreg as a "copy" that defines a valno.
Also fixes a typo. These two issues prevent a simple subreg coalescing from
happening before.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86022 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SimpleRegisterCoalescing.cpp
test/CodeGen/X86/2009-11-04-SubregCoalescingBug.ll [new file with mode: 0644]