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