[llvm] [TargetLowering] Remove isCtlzFast TLI hook (NFC) (PR #206174)

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 30 03:19:05 PDT 2026


================
@@ -12319,29 +12319,6 @@ SDValue TargetLowering::LowerToTLSEmulatedModel(const GlobalAddressSDNode *GA,
   return CallResult.first;
 }
 
-SDValue TargetLowering::lowerCmpEqZeroToCtlzSrl(SDValue Op,
-                                                SelectionDAG &DAG) const {
-  assert((Op->getOpcode() == ISD::SETCC) && "Input has to be a SETCC node.");
-  if (!isCtlzFast())
-    return SDValue();
----------------
RKSimon wrote:

Can you keep this but just move the isCtlzFast equivalent check into the target callers?

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


More information about the llvm-commits mailing list