Change 'AttrVal' to 'AttrKind' to better reflect that it's a kind of attribute instead of the value of the attribute.

llvm-svn: 170972
This commit is contained in:
Bill Wendling
2012-12-22 00:37:52 +00:00
parent c632467e2b
commit c79e42c5ce
9 changed files with 40 additions and 40 deletions

View File

@@ -94,7 +94,7 @@ struct LoopVectorize : public LoopPass {
// Check the function attribues to find out if this function should be
// optimized for size.
Function *F = L->getHeader()->getParent();
Attribute::AttrVal SzAttr= Attribute::OptimizeForSize;
Attribute::AttrKind SzAttr= Attribute::OptimizeForSize;
bool OptForSize = F->getFnAttributes().hasAttribute(SzAttr);
unsigned VF = CM.selectVectorizationFactor(OptForSize, VectorizationFactor);