[llvm-commits] [llvm] r108013 - /llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp
Jakob Stoklund Olesen
stoklund at 2pi.dk
Fri Jul 9 13:55:49 PDT 2010
Author: stoklund
Date: Fri Jul 9 15:55:49 2010
New Revision: 108013
URL: http://llvm.org/viewvc/llvm-project?rev=108013&view=rev
Log:
Fix small bug in isMoveInstr -> COPY translation
Modified:
llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp
Modified: llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp?rev=108013&r1=108012&r2=108013&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp (original)
+++ llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp Fri Jul 9 15:55:49 2010
@@ -192,9 +192,10 @@
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) {
More information about the llvm-commits
mailing list