diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2010-07-09 20:55:49 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2010-07-09 20:55:49 +0000 |
commit | 8ea324093cd512acc37f7b5a60e511e64103699e (patch) | |
tree | aaf06a02058f5cfa5f4fa596dec916575d2119e1 | |
parent | 1f32340d95ac480bfc74bcfd00fd5cffbe078652 (diff) |
Fix small bug in isMoveInstr -> COPY translation
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108013 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/CodeGen/LiveIntervalAnalysis.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/CodeGen/LiveIntervalAnalysis.cpp b/lib/CodeGen/LiveIntervalAnalysis.cpp index 742dc64a6b..194d03d8db 100644 --- a/lib/CodeGen/LiveIntervalAnalysis.cpp +++ b/lib/CodeGen/LiveIntervalAnalysis.cpp @@ -192,9 +192,10 @@ bool LiveIntervals::conflictsWithPhysReg(const LiveInterval &li, if (tii_->isMoveInstr(MI, SrcReg, DstReg, SrcSubReg, DstSubReg)) if (SrcReg == li.reg || DstReg == li.reg) continue; - if (MI.isCopy() && MI.getOperand(0).getReg() == li.reg && - MI.getOperand(1).getReg() == li.reg) - continue; + if (MI.isCopy()) + if (MI.getOperand(0).getReg() == li.reg || + MI.getOperand(1).getReg() == li.reg) + continue; // Check for operands using reg for (unsigned i = 0, e = MI.getNumOperands(); i != e; ++i) { |