[llvm] [DAGCombine] Count leading ones: refine post DAG/Type Legalisation if promotion (PR #102877)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 20 23:52:39 PDT 2024
================
@@ -3755,6 +3755,50 @@ SDValue DAGCombiner::foldSubToUSubSat(EVT DstVT, SDNode *N, const SDLoc &DL) {
return SDValue();
}
+template <class MatchContextClass>
+static SDValue foldSubCtlzNot(SDNode *N, SelectionDAG &DAG) {
----------------
v01dXYZ wrote:
I added a comment. There are two patterns that are matched. And the replacing subDAG is slightly different (one any-extend when the other one does not).
https://github.com/llvm/llvm-project/pull/102877
More information about the llvm-commits
mailing list