mirror of
https://github.com/RPCS3/llvm.git
synced 2026-07-19 15:13:49 -04:00
[IR] Refactor attribute methods in Function class (NFC)
Rename the functions that query the optimization kind attributes. Differential revision: https://reviews.llvm.org/D60287 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@357731 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -426,7 +426,7 @@ bool CodeGenPrepare::runOnFunction(Function &F) {
|
||||
LI = &getAnalysis<LoopInfoWrapperPass>().getLoopInfo();
|
||||
BPI.reset(new BranchProbabilityInfo(F, *LI));
|
||||
BFI.reset(new BlockFrequencyInfo(F, *BPI, *LI));
|
||||
OptSize = F.optForSize();
|
||||
OptSize = F.hasOptSize();
|
||||
|
||||
ProfileSummaryInfo *PSI =
|
||||
&getAnalysis<ProfileSummaryInfoWrapperPass>().getPSI();
|
||||
@@ -4454,7 +4454,7 @@ static bool FindAllMemoryUses(
|
||||
if (!MightBeFoldableInst(I))
|
||||
return true;
|
||||
|
||||
const bool OptSize = I->getFunction()->optForSize();
|
||||
const bool OptSize = I->getFunction()->hasOptSize();
|
||||
|
||||
// Loop over all the uses, recursively processing them.
|
||||
for (Use &U : I->uses()) {
|
||||
|
||||
Reference in New Issue
Block a user