aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/LoopUtils.cpp
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2017-12-06 19:11:23 +0000
committerSanjay Patel <spatel@rotateright.com>2017-12-06 19:11:23 +0000
commit1ea7b6f7a1944a3c112261ae63005815873ff8e0 (patch)
treee135741597235bea2db460ae80c3d56b651ce6a4 /llvm/lib/Transforms/Utils/LoopUtils.cpp
parentaca3df5479948eee3ee9a0cecd48dc772da70058 (diff)
downloadllvm-1ea7b6f7a1944a3c112261ae63005815873ff8e0.zip
llvm-1ea7b6f7a1944a3c112261ae63005815873ff8e0.tar.gz
llvm-1ea7b6f7a1944a3c112261ae63005815873ff8e0.tar.bz2
[LoopUtils] fix variable name to match FMF vocabulary; NFC
llvm-svn: 319928
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopUtils.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/LoopUtils.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Transforms/Utils/LoopUtils.cpp b/llvm/lib/Transforms/Utils/LoopUtils.cpp
index 0de6924..0fc8e0c 100644
--- a/llvm/lib/Transforms/Utils/LoopUtils.cpp
+++ b/llvm/lib/Transforms/Utils/LoopUtils.cpp
@@ -1400,8 +1400,8 @@ Value *llvm::createSimpleTargetReduction(
using RD = RecurrenceDescriptor;
RD::MinMaxRecurrenceKind MinMaxKind = RD::MRK_Invalid;
// TODO: Support creating ordered reductions.
- FastMathFlags FMFUnsafe;
- FMFUnsafe.setFast();
+ FastMathFlags FMFFast;
+ FMFFast.setFast();
switch (Opcode) {
case Instruction::Add:
@@ -1422,14 +1422,14 @@ Value *llvm::createSimpleTargetReduction(
case Instruction::FAdd:
BuildFunc = [&]() {
auto Rdx = Builder.CreateFAddReduce(ScalarUdf, Src);
- cast<CallInst>(Rdx)->setFastMathFlags(FMFUnsafe);
+ cast<CallInst>(Rdx)->setFastMathFlags(FMFFast);
return Rdx;
};
break;
case Instruction::FMul:
BuildFunc = [&]() {
auto Rdx = Builder.CreateFMulReduce(ScalarUdf, Src);
- cast<CallInst>(Rdx)->setFastMathFlags(FMFUnsafe);
+ cast<CallInst>(Rdx)->setFastMathFlags(FMFFast);
return Rdx;
};
break;