[PATCH] D48975: [DAG] Support non-uniform X%C -> X-(X/C)*C folds
Simon Pilgrim via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 5 11:17:28 PDT 2018
RKSimon added inline comments.
================
Comment at: lib/CodeGen/SelectionDAG/DAGCombiner.cpp:3263
AddToWorklist(Div.getNode());
SDValue OptimizedDiv = combine(Div.getNode());
if (OptimizedDiv.getNode() && OptimizedDiv.getNode() != Div.getNode() &&
----------------
efriedma wrote:
> Instead of doing this weird recursive combine() dance, can we just call BuildSDIV() or whatever directly? Not exactly part of your patch, but it's difficult to follow what code actually runs here, and it only gets more complicated with vectors.
Almost certainly - I'll look at what is involved.
Repository:
rL LLVM
https://reviews.llvm.org/D48975
More information about the llvm-commits
mailing list