diff options
author | Evan Cheng <evan.cheng@apple.com> | 2009-01-20 19:12:24 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2009-01-20 19:12:24 +0000 |
commit | f97496a054876b3bb9c0acf424379eb2f48377ce (patch) | |
tree | 83e8495f021a9e995df02cb9df4ed332e369e336 /lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | |
parent | 47454b15520c0f632b96c5e5231634a6b092b102 (diff) | |
download | external_llvm-f97496a054876b3bb9c0acf424379eb2f48377ce.zip external_llvm-f97496a054876b3bb9c0acf424379eb2f48377ce.tar.gz external_llvm-f97496a054876b3bb9c0acf424379eb2f48377ce.tar.bz2 |
Change TargetInstrInfo::isMoveInstr to return source and destination sub-register indices as well.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62600 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index 547cd8d..ca0cd6e 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -189,9 +189,9 @@ static void EmitLiveInCopy(MachineBasicBlock *MBB, // don't coalesce. Also, only coalesce away a virtual register to virtual // register copy. bool Coalesced = false; - unsigned SrcReg, DstReg; + unsigned SrcReg, DstReg, SrcSubReg, DstSubReg; if (NumUses == 1 && - TII.isMoveInstr(*UseMI, SrcReg, DstReg) && + TII.isMoveInstr(*UseMI, SrcReg, DstReg, SrcSubReg, DstSubReg) && TargetRegisterInfo::isVirtualRegister(DstReg)) { VirtReg = DstReg; Coalesced = true; |