summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/InstCombine/InstCombineInternal.h
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2018-03-26 15:03:57 +0000
committerSanjay Patel <spatel@rotateright.com>2018-03-26 15:03:57 +0000
commit4fd4fd610c53aaa9af3bce975fe96b108449359e (patch)
tree94712524ae93d554697dba880c79c5e84aba43fb /llvm/lib/Transforms/InstCombine/InstCombineInternal.h
parent3aa9344605e30fa78de8a1f4922d78c1b27a7cc7 (diff)
downloadbcm5719-llvm-4fd4fd610c53aaa9af3bce975fe96b108449359e.tar.gz
bcm5719-llvm-4fd4fd610c53aaa9af3bce975fe96b108449359e.zip
[InstCombine] distribute fmul over fadd/fsub
This replaces a large chunk of code that was looking for compound patterns that include these sub-patterns. Existing tests ensure that all of the previous examples are still folded as expected. We still need to loosen the FMF check. llvm-svn: 328502
Diffstat (limited to 'llvm/lib/Transforms/InstCombine/InstCombineInternal.h')
-rw-r--r--llvm/lib/Transforms/InstCombine/InstCombineInternal.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineInternal.h b/llvm/lib/Transforms/InstCombine/InstCombineInternal.h
index ff92723d64e..5e934d542c0 100644
--- a/llvm/lib/Transforms/InstCombine/InstCombineInternal.h
+++ b/llvm/lib/Transforms/InstCombine/InstCombineInternal.h
@@ -289,8 +289,6 @@ public:
Instruction *visitSub(BinaryOperator &I);
Instruction *visitFSub(BinaryOperator &I);
Instruction *visitMul(BinaryOperator &I);
- Value *foldFMulConst(Instruction *FMulOrDiv, Constant *C,
- Instruction *InsertBefore);
Instruction *visitFMul(BinaryOperator &I);
Instruction *visitURem(BinaryOperator &I);
Instruction *visitSRem(BinaryOperator &I);
OpenPOWER on IntegriCloud