diff options
author | Sanjay Patel <spatel@rotateright.com> | 2018-11-06 15:53:58 +0000 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2018-11-06 15:53:58 +0000 |
commit | 05e70fb978f5473248d28d8c9aaa6695855f0efd (patch) | |
tree | 51cd9c8e59b05b018f7b72002019abb0e2bd36f4 /llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp | |
parent | 70282a050196941167b2589bddcf7a24759e15e3 (diff) | |
download | bcm5719-llvm-05e70fb978f5473248d28d8c9aaa6695855f0efd.tar.gz bcm5719-llvm-05e70fb978f5473248d28d8c9aaa6695855f0efd.zip |
[InstCombine] reduce code; NFC
llvm-svn: 346235
Diffstat (limited to 'llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp')
-rw-r--r-- | llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp b/llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp index 1946f8903b1..975cb83b8f3 100644 --- a/llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp +++ b/llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp @@ -5284,7 +5284,7 @@ static Instruction *foldFCmpReciprocalAndZero(FCmpInst &I, Instruction *LHSI, // Finally emit the new fcmp. Value *X = LHSI->getOperand(1); FCmpInst *NewFCI = new FCmpInst(Pred, X, RHSC); - NewFCI->setFastMathFlags(I.getFastMathFlags()); + NewFCI->copyFastMathFlags(&I); return NewFCI; } |