Home | History | Annotate | Download | only in Analysis

Lines Matching refs:Cast

189   if (CastInst *Cast = dyn_cast<CastInst>(Inst)) {
190 if (!isSafeToSpeculativelyExecute(Cast)) return 0;
191 Value *PHIIn = PHITranslateSubExpr(Cast->getOperand(0), CurBB, PredBB, DT);
193 if (PHIIn == Cast->getOperand(0))
194 return Cast;
196 // Find an available version of this cast.
200 return AddAsInput(ConstantExpr::getCast(Cast->getOpcode(),
201 C, Cast->getType()));
208 if (CastI->getOpcode() == Cast->getOpcode() &&
209 CastI->getType() == Cast->getType() &&
265 Constant *RHS = cast<ConstantInt>(Inst->getOperand(1));
266 bool isNSW = cast<BinaryOperator>(Inst)->hasNoSignedWrap();
267 bool isNUW = cast<BinaryOperator>(Inst)->hasNoUnsignedWrap();
381 Instruction *Inst = cast<Instruction>(InVal);
383 // Handle cast of PHI translatable value.
384 if (CastInst *Cast = dyn_cast<CastInst>(Inst)) {
385 if (!isSafeToSpeculativelyExecute(Cast)) return 0;
386 Value *OpVal = InsertPHITranslatedSubExpr(Cast->getOperand(0),
390 // Otherwise insert a cast at the end of PredBB.
391 CastInst *New = CastInst::Create(Cast->getOpcode(),
435 Res->setHasNoSignedWrap(cast<BinaryOperator>(Inst)->hasNoSignedWrap());
436 Res->setHasNoUnsignedWrap(cast