[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 09:57:59 PDT 2024


s-barannikov wrote:

Lowering it early disrupts constant folding optimizations. Lowering it at instruction selection is awkward, but may be not too much.
I really wish GISel had the two-step (type and operation) legalization as SDagISel has so that the constants could have a chance to be optimized between type and operation legalization (with the latter finally turning them into a constant pool load).


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


More information about the llvm-commits mailing list