diff options
| author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2010-07-03 00:04:37 +0000 |
|---|---|---|
| committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2010-07-03 00:04:37 +0000 |
| commit | 4c82a9e7d041c69528a715edaf4cc4bc1017e646 (patch) | |
| tree | 507212f1a595b90b230f8441d629605ee50230f1 /llvm/lib/CodeGen/TwoAddressInstructionPass.cpp | |
| parent | ece6906ea0e3e189e6a2a94c9fd10cbadd7d368b (diff) | |
| download | bcm5719-llvm-4c82a9e7d041c69528a715edaf4cc4bc1017e646.tar.gz bcm5719-llvm-4c82a9e7d041c69528a715edaf4cc4bc1017e646.zip | |
Detect and handle COPY in many places.
This code is transitional, it will soon be possible to eliminate
isExtractSubreg, isInsertSubreg, and isMoveInstr in most places.
llvm-svn: 107547
Diffstat (limited to 'llvm/lib/CodeGen/TwoAddressInstructionPass.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/TwoAddressInstructionPass.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp b/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp index 62fa0fdb771..4d4318df0de 100644 --- a/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp +++ b/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp @@ -382,7 +382,7 @@ static bool isCopyToReg(MachineInstr &MI, const TargetInstrInfo *TII, DstReg = 0; unsigned SrcSubIdx, DstSubIdx; if (!TII->isMoveInstr(MI, SrcReg, DstReg, SrcSubIdx, DstSubIdx)) { - if (MI.isExtractSubreg()) { + if (MI.isCopy() || MI.isExtractSubreg()) { DstReg = MI.getOperand(0).getReg(); SrcReg = MI.getOperand(1).getReg(); } else if (MI.isInsertSubreg()) { |

