Lines Matching refs:CSrc
265 if (auto *CSrc = dyn_cast<CastInst>(Src)) { // A->B->C cast
266 if (Instruction::CastOps NewOpc = isEliminableCastPair(CSrc, &CI)) {
267 // The first cast (CSrc) is eliminable so we need to fix up or replace
268 // the second cast (CI). CSrc will then have a good chance of being dead.
270 auto *Res = CastInst::Create(NewOpc, CSrc->getOperand(0), Ty);
272 if (CSrc->hasOneUse())
273 replaceAllDbgUsesWith(*CSrc, *Res, CI, DT);
1107 if (TruncInst *CSrc = dyn_cast<TruncInst>(Src)) { // A->B->C cast
1112 Value *A = CSrc->getOperand(0);
1114 unsigned MidSize = CSrc->getType()->getScalarSizeInBits();
1123 Value *And = Builder.CreateAnd(A, AndConst, CSrc->getName() + ".mask");