diff options
author | Craig Topper <craig.topper@intel.com> | 2018-07-26 22:40:22 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@intel.com> | 2018-07-26 22:40:22 +0000 |
commit | 8b5a2f7aacfcaf33d54127bd7385277f613a18cd (patch) | |
tree | b50f7e634f7b89fa700ccfec1a7979bb76d139ba /llvm/lib/CodeGen | |
parent | 30375de9b5e619d0f4c305c6a01a76b73c3fd788 (diff) | |
download | bcm5719-llvm-8b5a2f7aacfcaf33d54127bd7385277f613a18cd.tar.gz bcm5719-llvm-8b5a2f7aacfcaf33d54127bd7385277f613a18cd.zip |
[DAGCombiner] Remove some calls to AddToWorklist that should be unnecessary.
The DAGCombiner has a system for ensuring all nodes are visited. It doesn't require an AddToWorkList for every node that is created by a combine.
llvm-svn: 338079
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index c1a15b39130..3fdea2d0d8d 100644 --- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp @@ -2856,11 +2856,8 @@ SDValue DAGCombiner::visitMUL(SDNode *N) { (!VT.isVector() || Level <= AfterLegalizeVectorOps)) { SDLoc DL(N); SDValue LogBase2 = BuildLogBase2(N1, DL); - AddToWorklist(LogBase2.getNode()); - EVT ShiftVT = getShiftAmountTy(N0.getValueType()); SDValue Trunc = DAG.getZExtOrTrunc(LogBase2, DL, ShiftVT); - AddToWorklist(Trunc.getNode()); return DAG.getNode(ISD::SHL, DL, VT, N0, Trunc); } // fold (mul x, -(1 << c)) -> -(x << c) or (-x) << c |