summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
diff options
context:
space:
mode:
authorNadav Rotem <nrotem@apple.com>2012-12-12 19:39:36 +0000
committerNadav Rotem <nrotem@apple.com>2012-12-12 19:39:36 +0000
commit6027bdf8989081254f0528f1439c6cbd0ec049b4 (patch)
treee782f4074473f92de30798b70ab38b556677a2d2 /llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
parentd0bb22bba3ab20322e99ba90c42b1725f013c207 (diff)
downloadbcm5719-llvm-6027bdf8989081254f0528f1439c6cbd0ec049b4.tar.gz
bcm5719-llvm-6027bdf8989081254f0528f1439c6cbd0ec049b4.zip
Fix indentation.
llvm-svn: 170005
Diffstat (limited to 'llvm/lib/Transforms/Vectorize/LoopVectorize.cpp')
-rw-r--r--llvm/lib/Transforms/Vectorize/LoopVectorize.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
index 749b664f53f..cdd130f1354 100644
--- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
+++ b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -95,11 +95,10 @@ struct LoopVectorize : public LoopPass {
// Check the function attribues to find out if this function should be
// optimized for size.
Function *F = L->getHeader()->getParent();
- bool OptForSize =
- F->getFnAttributes().hasAttribute(Attributes::OptimizeForSize);
+ Attributes::AttrVal SzAttr= Attributes::OptimizeForSize;
+ bool OptForSize = F->getFnAttributes().hasAttribute(SzAttr);
- unsigned VF = CM.selectVectorizationFactor(OptForSize,
- VectorizationFactor);
+ unsigned VF = CM.selectVectorizationFactor(OptForSize, VectorizationFactor);
if (VF == 1) {
DEBUG(dbgs() << "LV: Vectorization is possible but not beneficial.\n");
OpenPOWER on IntegriCloud