Lines Matching refs:ZExt
140 if (auto *ZExt = dyn_cast<ZExtInst>(V)) in isSupportedType() local
141 return isSupportedType(ZExt->getOperand(0)); in isSupportedType()
167 else if (auto *ZExt = dyn_cast<ZExtInst>(V)) in isSource() local
169 return isa<LoadInst>(ZExt->getOperand(0)) && in isSource()
170 ZExt->getOperand(0)->hasOneUse(); in isSource()
172 return Call->hasRetAttr(Attribute::AttrKind::ZExt); in isSource()
236 if (auto *ZExt = dyn_cast<ZExtInst>(I)) in shouldPromote() local
237 return !ZExt->getDestTy()->isIntegerTy(32); in shouldPromote()
343 auto *ZExt = cast<Instruction>(Builder.CreateZExt(V, ExtTy)); in Mutate() local
345 ZExt->moveBefore(InsertPt); in Mutate()
347 ZExt->moveAfter(InsertPt); in Mutate()
348 ReplaceAllUsersOfWith(V, ZExt); in Mutate()
349 NewInsts.insert(ZExt); in Mutate()
356 if (auto *ZExt = dyn_cast<ZExtInst>(V)) in Mutate() local
357 ZExt->mutateType(ExtTy); in Mutate()
404 if (auto *ZExt = dyn_cast<ZExtInst>(V)) { in Mutate() local
405 if (ZExt->getDestTy() != ExtTy) { in Mutate()
406 ZExt->mutateType(ExtTy); in Mutate()
407 Promoted.insert(ZExt); in Mutate()
409 else if (ZExt->getSrcTy() == ExtTy) { in Mutate()
410 ReplaceAllUsersOfWith(V, ZExt->getOperand(0)); in Mutate()
411 InstsToRemove.push_back(ZExt); in Mutate()
515 return Call->hasRetAttr(Attribute::AttrKind::ZExt); in isSupportedValue()
547 } else if (auto *ZExt = dyn_cast<ZExtInst>(V)) { in isLegalToPromote() local
548 VSize = ZExt->getOperand(0)->getType()->getPrimitiveSizeInBits(); in isLegalToPromote()