[llvm] [CodeGen] Optimize ctpop expansion using computeKnownBits (PR #221671)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Sun Sep 13 11:15:09 PDT 2026


================
@@ -12246,6 +12244,19 @@ void SelectionDAGISel::LowerArguments(const Function &F) {
           OutVal = DAG.getNode(ISD::AssertNoFPClass, dl, OutVal.getValueType(),
                                OutVal, SDNoFPClass);
         }
+        if (VT.isInteger()) {
----------------
arsenm wrote:

else if, and doesn't need the isInteger check

This also ought to be its own patch (I also thought range attributes already folded into AssertZext)

https://github.com/llvm/llvm-project/pull/221671


More information about the llvm-commits mailing list