aboutsummaryrefslogtreecommitdiffstats
path: root/lib
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
commitd0b144c04c10c62ad51d0e171680d9ce95af4078 (patch)
treea610a2cf009bfcb85c926e37ca40c7a1033fbffb /lib
parentae3b652f5cc19d83b6466d4fa70a7d1c7fb6d06c (diff)
downloadexternal_llvm-d0b144c04c10c62ad51d0e171680d9ce95af4078.zip
external_llvm-d0b144c04c10c62ad51d0e171680d9ce95af4078.tar.gz
external_llvm-d0b144c04c10c62ad51d0e171680d9ce95af4078.tar.bz2
Fix indentation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@170005 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Transforms/Vectorize/LoopVectorize.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/Transforms/Vectorize/LoopVectorize.cpp b/lib/Transforms/Vectorize/LoopVectorize.cpp
index 749b664..cdd130f 100644
--- a/lib/Transforms/Vectorize/LoopVectorize.cpp
+++ b/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");