Lines Matching defs:CGP
151 cl::desc("Address sinking in CGP using GEPs."));
512 CodeGenPrepare CGP(TM);
513 CGP.DL = &F.getDataLayout();
514 CGP.SubtargetInfo = TM->getSubtargetImpl(F);
515 CGP.TLI = CGP.SubtargetInfo->getTargetLowering();
516 CGP.TRI = CGP.SubtargetInfo->getRegisterInfo();
517 CGP.TLInfo = &getAnalysis<TargetLibraryInfoWrapperPass>().getTLI(F);
518 CGP.TTI = &getAnalysis<TargetTransformInfoWrapperPass>().getTTI(F);
519 CGP.LI = &getAnalysis<LoopInfoWrapperPass>().getLoopInfo();
520 CGP.BPI.reset(new BranchProbabilityInfo(F, *CGP.LI));
521 CGP.BFI.reset(new BlockFrequencyInfo(F, *CGP.BPI, *CGP.LI));
522 CGP.PSI = &getAnalysis<ProfileSummaryInfoWrapperPass>().getPSI();
525 CGP.BBSectionsProfileReader = BBSPRWP ? &BBSPRWP->getBBSPR() : nullptr;
527 return CGP._run(F);
547 CodeGenPrepare CGP(TM);
549 bool Changed = CGP.run(F, AM);
1589 // This is because we recompute the DT on every change in the main CGP
2694 // Mark this instruction as "inserted by CGP", so that other
3228 /// CGP does not check if instructions could be speculatively executed when
5839 LLVM_DEBUG(dbgs() << "CGP: Found local addrmode: " << AddrMode
5860 LLVM_DEBUG(dbgs() << "CGP: Reusing nonlocal addrmode: " << AddrMode
5881 LLVM_DEBUG(dbgs() << "CGP: SINKING nonlocal addrmode: " << AddrMode
6039 LLVM_DEBUG(dbgs() << "CGP: SINKING nonlocal addrmode: " << AddrMode
7234 // Mark this instruction as "inserted by CGP", so that other
8833 // Some CGP optimizations may move or alter what's computed in a block. Check