Home | History | Annotate | Download | only in InstCombine

Lines Matching defs:OpI

1197   BinaryOperator *OpI = dyn_cast<BinaryOperator>(CI.getOperand(0));
1198 if (OpI && OpI->hasOneUse()) {
1199 switch (OpI->getOpcode()) {
1206 Type *SrcTy = OpI->getType();
1207 Value *LHSTrunc = LookThroughFPExtensions(OpI->getOperand(0));
1208 Value *RHSTrunc = LookThroughFPExtensions(OpI->getOperand(1));
1218 return BinaryOperator::Create(OpI->getOpcode(), LHSTrunc, RHSTrunc);
1225 if (BinaryOperator::isFNeg(OpI)) {
1226 Value *InnerTrunc = Builder->CreateFPTrunc(OpI->getOperand(1),
1290 Instruction *OpI = dyn_cast<Instruction>(FI.getOperand(0));
1291 if (OpI == 0)
1300 if ((isa<UIToFPInst>(OpI) || isa<SIToFPInst>(OpI)) &&
1301 OpI->getOperand(0)->getType() == FI.getType() &&
1303 OpI->getType()->getFPMantissaWidth())
1304 return ReplaceInstUsesWith(FI, OpI->getOperand(0));
1310 Instruction *OpI = dyn_cast<Instruction>(FI.getOperand(0));
1311 if (OpI == 0)
1320 if ((isa<UIToFPInst>(OpI) || isa<SIToFPInst>(OpI)) &&
1321 OpI->getOperand(0)->getType() == FI.getType() &&
1323 OpI->getType()->getFPMantissaWidth())
1324 return ReplaceInstUsesWith(FI, OpI->getOperand(0));