diff options
author | Evandro Menezes <e.menezes@samsung.com> | 2019-04-04 22:40:06 +0000 |
---|---|---|
committer | Evandro Menezes <e.menezes@samsung.com> | 2019-04-04 22:40:06 +0000 |
commit | 85bd3978ae4e1c16fa8fa4bc27d0393d1d2265ea (patch) | |
tree | a34b115e832741a6bbc24703da317621c657a8bf /llvm/lib/Transforms/Vectorize | |
parent | 665b6b30ddeae26a3d215659f703bbe8a47cba77 (diff) | |
download | bcm5719-llvm-85bd3978ae4e1c16fa8fa4bc27d0393d1d2265ea.tar.gz bcm5719-llvm-85bd3978ae4e1c16fa8fa4bc27d0393d1d2265ea.zip |
[IR] Refactor attribute methods in Function class (NFC)
Rename the functions that query the optimization kind attributes.
Differential revision: https://reviews.llvm.org/D60287
llvm-svn: 357731
Diffstat (limited to 'llvm/lib/Transforms/Vectorize')
-rw-r--r-- | llvm/lib/Transforms/Vectorize/LoopVectorize.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp index 1ff32d96f07..7f16d96e71c 100644 --- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp +++ b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp @@ -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 |