[llvm] [GlobalISel][ARM] Legalization of G_CONSTANT using constant pool (PR #98308)

Sergei Barannikov via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 12 11:20:35 PDT 2024


s-barannikov wrote:

> > Lowering it at instruction selection is awkward
> 
> It is equivalent to the introduction of a pseudo instruction, which is then lowered at the selection phase, no?

I'm not sure what you mean by that?
By awkward I mean that instruction selection should just select instructions, that is, map generic instructions to native ones and do nothing more. If there is no more or less direct mapping, then the instruction should've been lowered prior to instruction selection, potentially creating some optimization opportunities.

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


More information about the llvm-commits mailing list