summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-02-14 01:11:29 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-02-14 01:11:29 +0000
commit2c79ad974c641dd799b04c656aa8c2fc96dfb3cd (patch)
treeac4199b56d8b85df3d1de2f3b3b919c59657f8ab /llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
parent60038bebf1df5e2cfa1ac483f86d713a8bfe9234 (diff)
downloadbcm5719-llvm-2c79ad974c641dd799b04c656aa8c2fc96dfb3cd.tar.gz
bcm5719-llvm-2c79ad974c641dd799b04c656aa8c2fc96dfb3cd.zip
Transforms: Canonicalize access to function attributes, NFC
Canonicalize access to function attributes to use the simpler API. getAttributes().getAttribute(AttributeSet::FunctionIndex, Kind) => getFnAttribute(Kind) getAttributes().hasAttribute(AttributeSet::FunctionIndex, Kind) => hasFnAttribute(Kind) llvm-svn: 229202
Diffstat (limited to 'llvm/lib/Transforms/InstCombine/InstructionCombining.cpp')
-rw-r--r--llvm/lib/Transforms/InstCombine/InstructionCombining.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp b/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
index ffc8ff5b16c..b485d2669ff 100644
--- a/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
+++ b/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
@@ -2915,8 +2915,7 @@ static bool combineInstructionsOverFunction(
TargetLibraryInfo &TLI, DominatorTree &DT, const DataLayout *DL = nullptr,
LoopInfo *LI = nullptr) {
// Minimizing size?
- bool MinimizeSize = F.getAttributes().hasAttribute(
- AttributeSet::FunctionIndex, Attribute::MinSize);
+ bool MinimizeSize = F.hasFnAttribute(Attribute::MinSize);
/// Builder - This is an IRBuilder that automatically inserts new
/// instructions into the worklist when they are created.
OpenPOWER on IntegriCloud