summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/IVDescriptors.cpp
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2019-09-25 13:29:09 +0000
committerSanjay Patel <spatel@rotateright.com>2019-09-25 13:29:09 +0000
commit2cec4b58f5ce7d5c843dbfb753b0acb29c81cfc0 (patch)
tree742840a75e3e3e25c93dc802a9003cc0b091b883 /llvm/lib/Analysis/IVDescriptors.cpp
parent791526085338594381adcacc13f04a4834e56d36 (diff)
downloadbcm5719-llvm-2cec4b58f5ce7d5c843dbfb753b0acb29c81cfc0.tar.gz
bcm5719-llvm-2cec4b58f5ce7d5c843dbfb753b0acb29c81cfc0.zip
Revert [IR] allow fast-math-flags on phi of FP values
This reverts r372866 (git commit dec03223a97af0e4dfcb23da55c0f7f8c9b62d00) llvm-svn: 372868
Diffstat (limited to 'llvm/lib/Analysis/IVDescriptors.cpp')
-rw-r--r--llvm/lib/Analysis/IVDescriptors.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/IVDescriptors.cpp b/llvm/lib/Analysis/IVDescriptors.cpp
index 6fb600114bc..ce285f82f72 100644
--- a/llvm/lib/Analysis/IVDescriptors.cpp
+++ b/llvm/lib/Analysis/IVDescriptors.cpp
@@ -300,8 +300,7 @@ bool RecurrenceDescriptor::AddReductionVar(PHINode *Phi, RecurrenceKind Kind,
ReduxDesc = isRecurrenceInstr(Cur, Kind, ReduxDesc, HasFunNoNaNAttr);
if (!ReduxDesc.isRecurrence())
return false;
- // FIXME: FMF is allowed on phi, but propagation is not handled correctly.
- if (isa<FPMathOperator>(ReduxDesc.getPatternInst()) && !IsAPhi)
+ if (isa<FPMathOperator>(ReduxDesc.getPatternInst()))
FMF &= ReduxDesc.getPatternInst()->getFastMathFlags();
}
OpenPOWER on IntegriCloud