X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=blobdiff_plain;f=lib%2FTransforms%2FScalar%2FInstructionCombining.cpp;h=363d8798f311ff34c0581310dc22ffe70dfd3ebc;hp=a7a450fb00d38b93c71ffbda864d58ccf7b4cbf7;hb=a0085af87155aa2e6f81a48e20b88b4afbeaefb1;hpb=cccbe7e4156884c6483b548997eea02bcf8b748e diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp index a7a450fb00d..363d8798f31 100644 --- a/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/lib/Transforms/Scalar/InstructionCombining.cpp @@ -6364,15 +6364,9 @@ Instruction *InstCombiner::visitFCmpInst(FCmpInst &I) { dyn_cast(LHSI->getOperand(0))) { if (GlobalVariable *GV = dyn_cast(GEP->getOperand(0))) if (GV->isConstant() && GV->hasDefinitiveInitializer() && - !cast(LHSI)->isVolatile()) { + !cast(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(LHSI->getOperand(0))) { if (GlobalVariable *GV = dyn_cast(GEP->getOperand(0))) if (GV->isConstant() && GV->hasDefinitiveInitializer() && - !cast(LHSI)->isVolatile()) { + !cast(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(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;