Home | History | Annotate | Download | only in InstCombine

Lines Matching refs:GV

193 ///   cmp pred (load (gep GV, ...)), cmpcst
194 /// where GV is a global variable with a constant initializer. Try to simplify
201 FoldCmpLoadFromIndexedGlobal(GetElementPtrInst *GEP, GlobalVariable *GV,
206 Constant *Init = GV->getInitializer();
216 // Require: GEP GV, 0, i {{, constant indices}}
1234 if (GlobalVariable *GV = dyn_cast<GlobalVariable>(GEP->getOperand(0)))
1235 if (GV->isConstant() && GV->hasDefinitiveInitializer() &&
1238 if (Instruction *Res = FoldCmpLoadFromIndexedGlobal(GEP, GV,ICI, C))
2260 if (GlobalVariable *GV = dyn_cast<GlobalVariable>(GEP->getOperand(0)))
2261 if (GV->isConstant() && GV->hasDefinitiveInitializer() &&
2263 if (Instruction *Res = FoldCmpLoadFromIndexedGlobal(GEP, GV, I))
2966 if (GlobalVariable *GV = dyn_cast<GlobalVariable>(GEP->getOperand(0)))
2967 if (GV->isConstant() && GV->hasDefinitiveInitializer() &&
2969 if (Instruction *Res = FoldCmpLoadFromIndexedGlobal(GEP, GV, I))