summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2014-01-18 00:48:14 +0000
committerOwen Anderson <resistor@mac.com>2014-01-18 00:48:14 +0000
commit48b842ef7cc430d303d420eb9efb410076345750 (patch)
treefed01d39ced425aa58419f6bf9c5f503f94a96d7 /llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp
parent251e68b6aef5607fec853658cdc416ba2cd7ade4 (diff)
downloadbcm5719-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.cpp2
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:
OpenPOWER on IntegriCloud