oops, I intended to remove this, not comment it out. Thanks Duncan!
authorChris Lattner <sabre@nondot.org>
Tue, 24 Mar 2009 23:48:25 +0000 (23:48 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 24 Mar 2009 23:48:25 +0000 (23:48 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@67657 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/InstructionCombining.cpp

index 17ac5b7d8d5550362fa71ebb75d2928d6dc24554..f631d61457316e9d197a69fe540529100671beec 100644 (file)
@@ -6582,8 +6582,7 @@ Instruction *InstCombiner::visitICmpInstWithInstAndIntCst(ICmpInst &ICI,
       // preferable because it allows the C<<Y expression to be hoisted out
       // of a loop if Y is invariant and X is not.
       if (Shift && Shift->hasOneUse() && RHSV == 0 &&
-          ICI.isEquality() && !Shift->isArithmeticShift()/* &&
-          isa<Instruction>(Shift->getOperand(0))*/) {
+          ICI.isEquality() && !Shift->isArithmeticShift()) {
         // Compute C << Y.
         Value *NS;
         if (Shift->getOpcode() == Instruction::LShr) {