[PATCH] D66537: [DAGCombiner] Remove a bunch of redundant AddToWorklist calls.

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 26 19:57:23 PDT 2019


craig.topper added inline comments.


================
Comment at: llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:5391
         ? cast<LoadSDNode>(N0.getOperand(0)) : cast<LoadSDNode>(N0);
-      AddToWorklist(N);
       DAG.ReplaceAllUsesOfValueWith(SDValue(LN0, 0), Res);
----------------
Why is this one unnecessary?


================
Comment at: llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:5457
                          LN0->getBasePtr(), MemVT, LN0->getMemOperand());
-      AddToWorklist(N);
       CombineTo(N0.getNode(), ExtLoad, ExtLoad.getValue(1));
----------------
And this one?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D66537/new/

https://reviews.llvm.org/D66537





More information about the llvm-commits mailing list