goldsteinn wrote: > It would be better to only keep the add variant. `imm sub/shl/lshr/ashr X` cannot be encoded in one instruction (e.g., RISC-V/ARM). Sun should be fine because we will convert to `add` (its sub on RHS no?) https://github.com/llvm/llvm-project/pull/100437