[llvm] [RISCV] Add support for handling one tied operand in the source instruction for compress patterns (PR #143660)

via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 17 23:07:40 PDT 2025


================
@@ -123,7 +124,7 @@ class CompressInstEmitter {
   const RecordKeeper &Records;
   const CodeGenTarget Target;
   std::vector<CompressPat> CompressPatterns;
-
+  unsigned SourceLastTiedOp; // postion of the last tied operand in Source Inst
----------------
hchandel wrote:

Yes, it is a temporary between `addDagOperandMapping` for source instruction and `CreateInstOperandMapping` (Lines 505-525 of this file). If I modify them for reference argument, then `addDagOperandMapping` for destination instruction (Lines 515-516) will lead to an unused variable. How can I handle that?

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


More information about the llvm-commits mailing list