[llvm] [RISCV] Provide a more efficient lowering for experimental.cttz.elts. (PR #88552)

Philip Reames via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 15 12:41:06 PDT 2024


================
@@ -12336,6 +12366,12 @@ void RISCVTargetLowering::ReplaceNodeResults(SDNode *N,
       Results.push_back(DAG.getNode(ISD::TRUNCATE, DL, MVT::i32, Res));
       return;
     }
+    case Intrinsic::experimental_cttz_elts: {
+      EVT VT = N->getValueType(0);
----------------
preames wrote:

Single use variable.

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


More information about the llvm-commits mailing list