diff options
| author | Sanjay Patel <spatel@rotateright.com> | 2019-08-09 14:30:59 +0000 |
|---|---|---|
| committer | Sanjay Patel <spatel@rotateright.com> | 2019-08-09 14:30:59 +0000 |
| commit | 0b4ae34c2f347014169fe772a783d2342358cb8b (patch) | |
| tree | a1b97e72375c55abae77ab31d03ff9f6610aec22 /llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp | |
| parent | db7d874b712d173b50b5644bd3c5648de1bb39ca (diff) | |
| download | bcm5719-llvm-0b4ae34c2f347014169fe772a783d2342358cb8b.tar.gz bcm5719-llvm-0b4ae34c2f347014169fe772a783d2342358cb8b.zip | |
[DAGCombiner] remove redundant fold for X*1.0; NFC
This is handled at node creation time (similar to X/1.0)
after:
rL357029
(no fast-math-flags needed)
llvm-svn: 368443
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index 16b47780544..63431d5b7ec 100644 --- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp @@ -12043,10 +12043,6 @@ SDValue DAGCombiner::visitFMUL(SDNode *N) { !isConstantFPBuildVectorOrConstantFP(N1)) return DAG.getNode(ISD::FMUL, DL, VT, N1, N0, Flags); - // fold (fmul A, 1.0) -> A - if (N1CFP && N1CFP->isExactlyValue(1.0)) - return N0; - if (SDValue NewSel = foldBinOpIntoSelect(N)) return NewSel; |

