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;
}
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;
}
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;