[llvm] [RISCV][GISel] Legalize G_CTPOP. (PR #72005)

Michael Maitland via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 13 07:00:49 PST 2023


================
@@ -80,6 +80,11 @@ RISCVLegalizerInfo::RISCVLegalizerInfo(const RISCVSubtarget &ST) {
       .maxScalar(0, sXLen)
       .lower();
 
+  getActionDefinitionsBuilder(G_CTPOP)
+      .maxScalar(0, sXLen)
----------------
michaelmaitland wrote:

It might be helpful to add this information in a comment in the code?

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


More information about the llvm-commits mailing list