Lines Matching defs:CSrc
163 if (auto *CSrc = dyn_cast<CastInst>(Src)) { // A->B->C cast
164 if (Instruction::CastOps NewOpc = isEliminableCastPair(CSrc, &CI)) {
165 // The first cast (CSrc) is eliminable so we need to fix up or replace
166 // the second cast (CI). CSrc will then have a good chance of being dead.
167 auto *Res = CastInst::Create(NewOpc, CSrc->getOperand(0), Ty);
169 if (CSrc->hasOneUse())
170 replaceAllDbgUsesWith(*CSrc, *Res, CI, DT);
1237 if (auto *CSrc = dyn_cast<TruncInst>(Src)) { // A->B->C cast
1242 Value *A = CSrc->getOperand(0);
1244 unsigned MidSize = CSrc->getType()->getScalarSizeInBits();
1253 Value *And = Builder.CreateAnd(A, AndConst, CSrc->getName() + ".mask");