[llvm] [X86] EltsFromConsecutiveLoads - handle trunc(wideload()) patterns (PR #199371)
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 7 07:33:09 PDT 2026
RKSimon wrote:
> One idea would be to cut part of this down to a combineTruncateOfConcat helper in combineTruncate that folds `trunc(concat(trunc x, trunc y)) -> shuffle(vtrunc x, vtrunc y)`. Then the emission here is just wide loads plus a generic legal `trunc(concat(trunc,trunc))`. I have a working version locally that I am happy to put it up if you like the idea.
Sounds great - cheers. I'll take another look at this when I'm back in front of a PC as I'd like to get this in soon and you can work on improving it as followups (hopefully in time for release branch).
https://github.com/llvm/llvm-project/pull/199371
More information about the llvm-commits
mailing list