[llvm] [RISCV] Select unsigned bitfield insert for XAndesPerf (PR #142737)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 4 12:05:10 PDT 2025


================
@@ -688,6 +688,23 @@ bool RISCVDAGToDAGISel::tryUnsignedBitfieldExtract(SDNode *Node, SDLoc DL,
   return true;
 }
 
+bool RISCVDAGToDAGISel::tryUnsignedBitfieldInsertInZero(SDNode *Node, SDLoc DL,
----------------
topperc wrote:

If we keep it, I would like the lsb/msb arguments to truly be least significant bit and most significant bit. The encoding tricks used by the Andes instruction should be done inside the function.

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


More information about the llvm-commits mailing list