[llvm] [GlobalISel] Add support to moreElementsVector for G_SEXT, G_ZEXT and G_ANYEXT (PR #85038)

Dhruv Chawla via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 13 04:08:11 PDT 2024


dc03-work wrote:

> Would it be possible to replace `.maxNumElements()` with `.clampNumElements()` in AArch64LegalizerInfo.cpp? Currently moreElements only gets called by `.moreElementsToNextPow2()` for the EXTEND instructions This might help with legalizing quite a few of the failing EXTEND instructions that has been showing up like: `%1:_(<4 x s16>) = G_ZEXT %0:_(<4 x s8>)`

Hmm, what would the lower bound be in this case? 

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


More information about the llvm-commits mailing list