Home | History | Annotate | Download | only in InstCombine

Lines Matching defs:OpI

1183   BinaryOperator *OpI = dyn_cast<BinaryOperator>(CI.getOperand(0));
1184 if (OpI && OpI->hasOneUse()) {
1185 switch (OpI->getOpcode()) {
1192 Type *SrcTy = OpI->getType();
1193 Value *LHSTrunc = LookThroughFPExtensions(OpI->getOperand(0));
1194 Value *RHSTrunc = LookThroughFPExtensions(OpI->getOperand(1));
1204 return BinaryOperator::Create(OpI->getOpcode(), LHSTrunc, RHSTrunc);
1250 Instruction *OpI = dyn_cast<Instruction>(FI.getOperand(0));
1251 if (OpI == 0)
1260 if ((isa<UIToFPInst>(OpI) || isa<SIToFPInst>(OpI)) &&
1261 OpI->getOperand(0)->getType() == FI.getType() &&
1263 OpI->getType()->getFPMantissaWidth())
1264 return ReplaceInstUsesWith(FI, OpI->getOperand(0));
1270 Instruction *OpI = dyn_cast<Instruction>(FI.getOperand(0));
1271 if (OpI == 0)
1280 if ((isa<UIToFPInst>(OpI) || isa<SIToFPInst>(OpI)) &&
1281 OpI->getOperand(0)->getType() == FI.getType() &&
1283 OpI->getType()->getFPMantissaWidth())
1284 return ReplaceInstUsesWith(FI, OpI->getOperand(0));