[llvm-branch-commits] [llvm-branch] r96281 - in /llvm/branches/Apple/Hermes: lib/CodeGen/ProcessImplicitDefs.cpp test/CodeGen/X86/2010-02-15-ImplicitDefBug.ll

Jakob Stoklund Olesen stoklund at 2pi.dk
Mon Feb 15 14:08:16 PST 2010


Author: stoklund
Date: Mon Feb 15 16:08:16 2010
New Revision: 96281

URL: http://llvm.org/viewvc/llvm-project?rev=96281&view=rev
Log:
--- Merging r96279 into '.':
A    test/CodeGen/X86/2010-02-15-ImplicitDefBug.ll
U    lib/CodeGen/ProcessImplicitDefs.cpp


Added:
    llvm/branches/Apple/Hermes/test/CodeGen/X86/2010-02-15-ImplicitDefBug.ll
      - copied unchanged from r96279, llvm/trunk/test/CodeGen/X86/2010-02-15-ImplicitDefBug.ll
Modified:
    llvm/branches/Apple/Hermes/lib/CodeGen/ProcessImplicitDefs.cpp

Modified: llvm/branches/Apple/Hermes/lib/CodeGen/ProcessImplicitDefs.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/Hermes/lib/CodeGen/ProcessImplicitDefs.cpp?rev=96281&r1=96280&r2=96281&view=diff

==============================================================================
--- llvm/branches/Apple/Hermes/lib/CodeGen/ProcessImplicitDefs.cpp (original)
+++ llvm/branches/Apple/Hermes/lib/CodeGen/ProcessImplicitDefs.cpp Mon Feb 15 16:08:16 2010
@@ -205,10 +205,9 @@
       // Process each use instruction once.
       for (MachineRegisterInfo::use_iterator UI = mri_->use_begin(Reg),
              UE = mri_->use_end(); UI != UE; ++UI) {
-        MachineInstr *RMI = &*UI;
-        MachineBasicBlock *RMBB = RMI->getParent();
-        if (RMBB == MBB)
+        if (UI.getOperand().isUndef())
           continue;
+        MachineInstr *RMI = &*UI;
         if (ModInsts.insert(RMI))
           RUses.push_back(RMI);
       }





More information about the llvm-branch-commits mailing list