[llvm-commits] [llvm] r92446 - /llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp
Chris Lattner
sabre at nondot.org
Sat Jan 2 22:58:50 PST 2010
Author: lattner
Date: Sun Jan 3 00:58:48 2010
New Revision: 92446
URL: http://llvm.org/viewvc/llvm-project?rev=92446&view=rev
Log:
pull my debug hooks out, I'm done with this xform for now.
Modified:
llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp?rev=92446&r1=92445&r2=92446&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp Sun Jan 3 00:58:48 2010
@@ -6364,15 +6364,9 @@
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 @@
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 @@
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;
More information about the llvm-commits
mailing list