[llvm] [RISCV] Handle 'c.addi x0, $imm' alias for c.nop using PseudoC_ADDI_NOP. (PR #150719)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 25 16:55:58 PDT 2025


topperc wrote:

> (I sort of wish the spec didn't say that `c.nop` was a new instruction, just that it was an alias, but there are always going to be edges like this).

Yeah. binutils does treat it as an alias and I think prints `c.addi x0, 0` with -Mno-aliases. I think that's a little less confusing to users than `c.nop 0`.

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


More information about the llvm-commits mailing list