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

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 17 23:11:00 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
----------------
topperc wrote:

I guess you could pass it by pointer instead of reference and just use a nullptr for the destination call?

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


More information about the llvm-commits mailing list