[llvm] [RISCV][GISEL] Legalize G_PTRMASK (PR #73062)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Sat Nov 25 12:48:27 PST 2023


topperc wrote:

> > Is this based off another target? I see AArch64 handles this in instruction selection.
> 
> I didn’t see why this opcode couldn’t be handled generally for all targets. That sounded like it fit well where I put it. No reason why it needs to be in a target specific instruction selector. Maybe other targets can eventually reuse the generic logic added here.

If all targets should lower it in the legalizer then why does it exist as an opcode at all?

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


More information about the llvm-commits mailing list