[llvm-branch-commits] [llvm-branch] r114485 - /llvm/branches/ggreif/arm-peephole/lib/Target/ARM/ARMBaseInstrInfo.cpp

Gabor Greif ggreif at gmail.com
Tue Sep 21 14:27:52 PDT 2010


Author: ggreif
Date: Tue Sep 21 16:27:52 2010
New Revision: 114485

URL: http://llvm.org/viewvc/llvm-project?rev=114485&view=rev
Log:
if the copy defines a reg then we want to find an 'and' that uses it

Modified:
    llvm/branches/ggreif/arm-peephole/lib/Target/ARM/ARMBaseInstrInfo.cpp

Modified: llvm/branches/ggreif/arm-peephole/lib/Target/ARM/ARMBaseInstrInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/ggreif/arm-peephole/lib/Target/ARM/ARMBaseInstrInfo.cpp?rev=114485&r1=114484&r2=114485&view=diff
==============================================================================
--- llvm/branches/ggreif/arm-peephole/lib/Target/ARM/ARMBaseInstrInfo.cpp (original)
+++ llvm/branches/ggreif/arm-peephole/lib/Target/ARM/ARMBaseInstrInfo.cpp Tue Sep 21 16:27:52 2010
@@ -1413,7 +1413,7 @@
       if (a == MI->getParent()->end()) return false;
       MI = a;
       return isSuitableForMask(MI, Copy.getOperand(0).getReg(),
-                               CmpMask, CommonUse);
+                               CmpMask, true);
     }
   }
 





More information about the llvm-branch-commits mailing list