summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Vectorize
diff options
context:
space:
mode:
authorNirav Dave <niravd@google.com>2016-03-30 15:41:12 +0000
committerNirav Dave <niravd@google.com>2016-03-30 15:41:12 +0000
commit8dd66e5753bcff1a7ea6bd217db0a94c6cb98585 (patch)
treecdbf1733fa153f3d2ee5afbec8bb050d3ff6b3d7 /llvm/lib/Transforms/Vectorize
parent20beeea24a6a11cac6e59dee8250b72fe24b6871 (diff)
downloadbcm5719-llvm-8dd66e5753bcff1a7ea6bd217db0a94c6cb98585.tar.gz
bcm5719-llvm-8dd66e5753bcff1a7ea6bd217db0a94c6cb98585.zip
Remove HasFnAttribute guards to getFnAttribute calls
These checks are redundant and can be removed Reviewers: hans Subscribers: llvm-commits, mzolotukhin Differential Revision: http://reviews.llvm.org/D18564 llvm-svn: 264872
Diffstat (limited to 'llvm/lib/Transforms/Vectorize')
-rw-r--r--llvm/lib/Transforms/Vectorize/LoopVectorize.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
index 1361961ebae..d2504c5e41d 100644
--- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
+++ b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -4516,9 +4516,8 @@ bool LoopVectorizationLegality::canVectorizeInstrs() {
// Look for the attribute signaling the absence of NaNs.
Function &F = *Header->getParent();
const DataLayout &DL = F.getParent()->getDataLayout();
- if (F.hasFnAttribute("no-nans-fp-math"))
- HasFunNoNaNAttr =
- F.getFnAttribute("no-nans-fp-math").getValueAsString() == "true";
+ HasFunNoNaNAttr =
+ F.getFnAttribute("no-nans-fp-math").getValueAsString() == "true";
// For each block in the loop.
for (Loop::block_iterator bb = TheLoop->block_begin(),
OpenPOWER on IntegriCloud