diff options
| author | Paweł Bylica <chfast@gmail.com> | 2019-11-14 13:37:15 +0100 |
|---|---|---|
| committer | Paweł Bylica <chfast@gmail.com> | 2019-11-14 14:02:53 +0100 |
| commit | 1c247dd028b368875bc36cd2a9ccc7fd90507776 (patch) | |
| tree | dafce3d5d0e71c95cba3a13050c0abdd6869c302 /llvm/lib/CodeGen | |
| parent | 9b89bda517cf8d43e7127b09f75a54d14d3978bf (diff) | |
| download | bcm5719-llvm-1c247dd028b368875bc36cd2a9ccc7fd90507776.tar.gz bcm5719-llvm-1c247dd028b368875bc36cd2a9ccc7fd90507776.zip | |
[DAGCombiner] Drop redundant DAG method param. NFC
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index 46c1b8b2807..6f68313c71c 100644 --- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp @@ -622,7 +622,7 @@ namespace { ConstantSDNode *Mask, SDNode *&NodeToMask); /// Attempt to propagate a given AND node back to load leaves so that they /// can be combined into narrow loads. - bool BackwardsPropagateMask(SDNode *N, SelectionDAG &DAG); + bool BackwardsPropagateMask(SDNode *N); /// Helper function for MergeConsecutiveStores which merges the /// component store chains. @@ -4855,7 +4855,7 @@ bool DAGCombiner::SearchForAndLoads(SDNode *N, return true; } -bool DAGCombiner::BackwardsPropagateMask(SDNode *N, SelectionDAG &DAG) { +bool DAGCombiner::BackwardsPropagateMask(SDNode *N) { auto *Mask = dyn_cast<ConstantSDNode>(N->getOperand(1)); if (!Mask) return false; @@ -5242,9 +5242,8 @@ SDValue DAGCombiner::visitAND(SDNode *N) { // loads, can be combined to narrow loads and the AND node can be removed. // Perform after legalization so that extend nodes will already be // combined into the loads. - if (BackwardsPropagateMask(N, DAG)) { + if (BackwardsPropagateMask(N)) return SDValue(N, 0); - } } if (SDValue Combined = visitANDLike(N0, N1, N)) |

