[llvm] [ARM] Replace manual CLS expansion with ISD::CTLS (PR #178430)

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 4 01:53:13 PST 2026


================
@@ -10351,7 +10333,7 @@ SDValue ARMTargetLowering::LowerOperation(SDValue Op, SelectionDAG &DAG) const {
   case ISD::SRL_PARTS:
   case ISD::SRA_PARTS:     return LowerShiftRightParts(Op, DAG);
   case ISD::CTTZ:
-  case ISD::CTTZ_ZERO_UNDEF: return LowerCTTZ(Op.getNode(), DAG, Subtarget);
+    return LowerCTTZ(Op.getNode(), DAG, Subtarget);
----------------
RKSimon wrote:

Loss of case ISD::CTTZ_ZERO_UNDEF? Revert this change


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


More information about the llvm-commits mailing list