diff options
author | Owen Anderson <resistor@mac.com> | 2014-01-18 00:48:14 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2014-01-18 00:48:14 +0000 |
commit | 48b842ef7cc430d303d420eb9efb410076345750 (patch) | |
tree | fed01d39ced425aa58419f6bf9c5f503f94a96d7 /llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp | |
parent | 251e68b6aef5607fec853658cdc416ba2cd7ade4 (diff) | |
download | bcm5719-llvm-48b842ef7cc430d303d420eb9efb410076345750.tar.gz bcm5719-llvm-48b842ef7cc430d303d420eb9efb410076345750.zip |
Fix more instances of dropped fast math flags when optimizing FADD instructions. All found by inspection (aka grep).
llvm-svn: 199528
Diffstat (limited to 'llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp')
-rw-r--r-- | llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp b/llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp index c0b9b2fc3e5..178be61b43e 100644 --- a/llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp +++ b/llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp @@ -638,6 +638,8 @@ static Value *BuildNew(Instruction *I, ArrayRef<Value*> NewOps) { if (isa<PossiblyExactOperator>(BO)) { New->setIsExact(BO->isExact()); } + if (isa<FPMathOperator>(BO)) + New->copyFastMathFlags(I); return New; } case Instruction::ICmp: |