[llvm] [AArch64][ISel] Add lowering for fixed-width `cttz` intrinsic (PR #190988)

David Green via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 13 02:47:40 PDT 2026


================
@@ -1076,6 +1079,16 @@ AArch64TTIImpl::getIntrinsicInstrCost(const IntrinsicCostAttributes &ICA,
     }
     break;
   }
+  case Intrinsic::cttz: {
+    auto LT = getTypeLegalizationCost(ICA.getArgTypes()[0]);
+    // llvm::errs() << "LT Value: " << LT.first << "\n";
----------------
davemgreen wrote:

This can be removed now. Same for the new include.

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


More information about the llvm-commits mailing list