Home | History | Annotate | Download | only in Analysis

Lines Matching refs:Cast

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