diff options
author | Sanjay Patel <spatel@rotateright.com> | 2019-09-25 13:29:09 +0000 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2019-09-25 13:29:09 +0000 |
commit | 2cec4b58f5ce7d5c843dbfb753b0acb29c81cfc0 (patch) | |
tree | 742840a75e3e3e25c93dc802a9003cc0b091b883 /llvm/lib/Analysis/IVDescriptors.cpp | |
parent | 791526085338594381adcacc13f04a4834e56d36 (diff) | |
download | bcm5719-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.cpp | 3 |
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(); } |