[llvm] [TableGen][InstrInfoEmitter] Count sub-operands on def operands (PR #88837)

via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 16 09:18:00 PDT 2024


================
@@ -693,38 +693,38 @@ let DecoderNamespace = "SparcV8", Predicates = [HasNoV9] in {
 }
 
 let rd = 0 in {
-  let Defs = [CPSR] in {
-    def STCSRrr : F3_1<3, 0b110101, (outs (MEMrr $rs1, $rs2):$addr), (ins),
+  let mayStore = 1, Uses = [CPSR] in {
----------------
darkbuck wrote:

> The mayStore setting looks like an unrelated change

I agree but I don't want those instructions are optimized away after this change. I cannot find any test from sparc target. Not sure whom should we ask for help.

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


More information about the llvm-commits mailing list