• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/Scalar/

Lines Matching defs:LF

2038                                   const LSRFixup &LF,
2042 Value *Expand(const LSRUse &LU, const LSRFixup &LF, const Formula &F,
2045 void RewriteForPHI(PHINode *PN, const LSRUse &LU, const LSRFixup &LF,
2048 void Rewrite(const LSRUse &LU, const LSRFixup &LF, const Formula &F,
3314 LSRFixup &LF = LU.getNewFixup();
3315 LF.UserInst = UserInst;
3316 LF.OperandValToReplace = U.getOperandValToReplace();
3317 LF.PostIncLoops = TmpPostIncLoops;
3318 LF.Offset = Offset;
3319 LU.AllFixupsOutsideLoop &= LF.isUseFullyOutsideLoop(L);
3323 SE.getTypeSizeInBits(LF.OperandValToReplace->getType()))
3324 LU.WidestFixupType = LF.OperandValToReplace->getType();
3464 LSRFixup &LF = LU.getNewFixup();
3465 LF.UserInst = const_cast<Instruction *>(UserInst);
3466 LF.OperandValToReplace = U;
3467 LF.Offset = Offset;
3468 LU.AllFixupsOutsideLoop &= LF.isUseFullyOutsideLoop(L);
3471 SE.getTypeSizeInBits(LF.OperandValToReplace->getType()))
3472 LU.WidestFixupType = LF.OperandValToReplace->getType();
5065 const LSRFixup &LF,
5072 if (Instruction *I = dyn_cast<Instruction>(LF.OperandValToReplace))
5076 dyn_cast<Instruction>(cast<ICmpInst>(LF.UserInst)->getOperand(1)))
5078 if (LF.PostIncLoops.count(L)) {
5079 if (LF.isUseFullyOutsideLoop(L))
5086 for (const Loop *PIL : LF.PostIncLoops) {
5128 Value *LSRInstance::Expand(const LSRUse &LU, const LSRFixup &LF,
5133 return LF.OperandValToReplace;
5137 IP = AdjustInsertPositionForExpand(IP, LF, LU, Rewriter);
5142 Rewriter.setPostInc(LF.PostIncLoops);
5145 Type *OpTy = LF.OperandValToReplace->getType();
5165 Reg = denormalizeForPostIncUse(Reg, LF.PostIncLoops, SE);
5175 PostIncLoopSet &Loops = const_cast<PostIncLoopSet &>(LF.PostIncLoops);
5231 int64_t Offset = (uint64_t)F.BaseOffset + LF.Offset;
5270 ICmpInst *CI = cast<ICmpInst>(LF.UserInst);
5307 PHINode *PN, const LSRUse &LU, const LSRFixup &LF, const Formula &F,
5311 if (PN->getIncomingValue(i) == LF.OperandValToReplace) {
5362 Value *FullV = Expand(LU, LF, F, BB->getTerminator()->getIterator(),
5366 Type *OpTy = LF.OperandValToReplace->getType();
5371 FullV, LF.OperandValToReplace->getType(),
5421 void LSRInstance::Rewrite(const LSRUse &LU, const LSRFixup &LF,
5426 if (PHINode *PN = dyn_cast<PHINode>(LF.UserInst)) {
5427 RewriteForPHI(PN, LU, LF, F, Rewriter, DeadInsts);
5430 Expand(LU, LF, F, LF.UserInst->getIterator(), Rewriter, DeadInsts);
5433 Type *OpTy = LF.OperandValToReplace->getType();
5437 FullV, OpTy, "tmp", LF.UserInst);
5443 // its new value may happen to be equal to LF.OperandValToReplace, in
5447 LF.UserInst->setOperand(0, FullV);
5449 LF.UserInst->replaceUsesOfWith(LF.OperandValToReplace, FullV);
5452 DeadInsts.emplace_back(LF.OperandValToReplace);
5634 for (const LSRFixup &LF : LU.Fixups) {
5636 LF.print(OS);