pull my debug hooks out, I'm done with this xform for now.
authorChris Lattner <sabre@nondot.org>
Sun, 3 Jan 2010 06:58:48 +0000 (06:58 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 3 Jan 2010 06:58:48 +0000 (06:58 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92446 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/InstructionCombining.cpp

index a7a450fb00d38b93c71ffbda864d58ccf7b4cbf7..363d8798f311ff34c0581310dc22ffe70dfd3ebc 100644 (file)
@@ -6364,15 +6364,9 @@ Instruction *InstCombiner::visitFCmpInst(FCmpInst &I) {
           dyn_cast<GetElementPtrInst>(LHSI->getOperand(0))) {
         if (GlobalVariable *GV = dyn_cast<GlobalVariable>(GEP->getOperand(0)))
           if (GV->isConstant() && GV->hasDefinitiveInitializer() &&
-              !cast<LoadInst>(LHSI)->isVolatile()) {
+              !cast<LoadInst>(LHSI)->isVolatile())
             if (Instruction *Res = FoldCmpLoadFromIndexedGlobal(GEP, GV, I))
               return Res;
-#if 0
-            errs() << "NOT HANDLED FP: " << *GV << "\n";
-            errs() << "\t" << *GEP << "\n";
-            errs() << "\t " << I << "\n\n\n";
-#endif
-          }
       }
       break;
     }
@@ -6761,15 +6755,9 @@ Instruction *InstCombiner::visitICmpInst(ICmpInst &I) {
               dyn_cast<GetElementPtrInst>(LHSI->getOperand(0))) {
           if (GlobalVariable *GV = dyn_cast<GlobalVariable>(GEP->getOperand(0)))
             if (GV->isConstant() && GV->hasDefinitiveInitializer() &&
-                !cast<LoadInst>(LHSI)->isVolatile()) {
+                !cast<LoadInst>(LHSI)->isVolatile())
               if (Instruction *Res = FoldCmpLoadFromIndexedGlobal(GEP, GV, I))
                 return Res;
-#if 0
-              errs() << "NOT HANDLED INT: " << *GV << "\n";
-              errs() << "\t" << *GEP << "\n";
-              errs() << "\t " << I << "\n\n\n";
-#endif
-            }
         }
         break;
       }
@@ -7434,12 +7422,6 @@ Instruction *InstCombiner::visitICmpInstWithInstAndIntCst(ICmpInst &ICI,
             ConstantInt *C = cast<ConstantInt>(LHSI->getOperand(1));
             if (Instruction *Res = FoldCmpLoadFromIndexedGlobal(GEP, GV,ICI, C))
               return Res;
-#if 0
-            errs() << "NOT HANDLED 'AND': " << *GV << "\n";
-            errs() << "\t" << *GEP << "\n";
-            errs() << "\t " << *LHSI << "\n\n\n";
-            errs() << "\t " << ICI << "\n\n\n";
-#endif
           }
     }
     break;