mirror of
https://github.com/RPCS3/llvm.git
synced 2026-07-21 11:15:29 -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:
@@ -7162,7 +7162,7 @@ static bool processLoopInVPlanNativePath(
|
||||
// Check the function attributes to find out if this function should be
|
||||
// optimized for size.
|
||||
bool OptForSize =
|
||||
Hints.getForce() != LoopVectorizeHints::FK_Enabled && F->optForSize();
|
||||
Hints.getForce() != LoopVectorizeHints::FK_Enabled && F->hasOptSize();
|
||||
|
||||
// Plan how to best vectorize, return the best VF and its cost.
|
||||
const VectorizationFactor VF = LVP.planInVPlanNativePath(OptForSize, UserVF);
|
||||
@@ -7245,7 +7245,7 @@ bool LoopVectorizePass::processLoop(Loop *L) {
|
||||
// Check the function attributes to find out if this function should be
|
||||
// optimized for size.
|
||||
bool OptForSize =
|
||||
Hints.getForce() != LoopVectorizeHints::FK_Enabled && F->optForSize();
|
||||
Hints.getForce() != LoopVectorizeHints::FK_Enabled && F->hasOptSize();
|
||||
|
||||
// Entrance to the VPlan-native vectorization path. Outer loops are processed
|
||||
// here. They may require CFG and instruction level transformations before
|
||||
|
||||
Reference in New Issue
Block a user