diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2010-07-06 23:26:25 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2010-07-06 23:26:25 +0000 |
commit | ed2185e171a86b8c0e166803fd4066383a6cff08 (patch) | |
tree | ebf3d2c29b2dc9f75970cbf95665c42540c4e7bd /lib/CodeGen/LiveIntervalAnalysis.cpp | |
parent | fca3a25fed9950f7ca39c86a3f2b72a1966f7896 (diff) | |
download | external_llvm-ed2185e171a86b8c0e166803fd4066383a6cff08.zip external_llvm-ed2185e171a86b8c0e166803fd4066383a6cff08.tar.gz external_llvm-ed2185e171a86b8c0e166803fd4066383a6cff08.tar.bz2 |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107726 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/LiveIntervalAnalysis.cpp')
-rw-r--r-- | lib/CodeGen/LiveIntervalAnalysis.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/LiveIntervalAnalysis.cpp b/lib/CodeGen/LiveIntervalAnalysis.cpp index fc65f86..a626fc0 100644 --- a/lib/CodeGen/LiveIntervalAnalysis.cpp +++ b/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; } } |