[llvm] [DAGCombine] Count leading ones: refine post DAG/Type Legalisation if promotion (PR #102877)
Min-Yih Hsu via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 20 16:33:04 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) {
----------------
mshockwave wrote:
could you add a brief comment explaining what this function does, primarily the pattern?
https://github.com/llvm/llvm-project/pull/102877
More information about the llvm-commits
mailing list