summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2010-07-06 23:26:25 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2010-07-06 23:26:25 +0000
commit70ee3ecd33f5f28a15388d640b0d158cd522b860 (patch)
treea0042d93bd6c67f1777bde71e171a0d1719b646d /llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
parent48deb125933b7e85442e83ec0a43040bc7821461 (diff)
downloadbcm5719-llvm-70ee3ecd33f5f28a15388d640b0d158cd522b860.tar.gz
bcm5719-llvm-70ee3ecd33f5f28a15388d640b0d158cd522b860.zip
Convert INSERT_SUBREG to COPY in TwoAddressInstructionPass.
INSERT_SUBREG will now only appear in SSA machine instructions. Fix the handling of partial redefs in ProcessImplicitDefs. This is now relevant since partial redef COPY instructions appear. llvm-svn: 107726
Diffstat (limited to 'llvm/lib/CodeGen/LiveIntervalAnalysis.cpp')
-rw-r--r--llvm/lib/CodeGen/LiveIntervalAnalysis.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
index fc65f86e202..a626fc03937 100644
--- a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
+++ b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
@@ -265,7 +265,7 @@ bool MultipleDefsBySameMI(const MachineInstr &MI, unsigned MOIdx) {
if (MO.getReg() == Reg && MO.isDef()) {
assert(MI.getOperand(MOIdx).getSubReg() != MO.getSubReg() &&
MI.getOperand(MOIdx).getSubReg() &&
- MO.getSubReg());
+ (MO.getSubReg() || MO.isImplicit()));
return true;
}
}
OpenPOWER on IntegriCloud