diff options
author | Philip Reames <preames@rivosinc.com> | 2025-06-24 09:48:00 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-06-24 09:48:00 -0700 |
commit | a84891698a2a13780d3804686ebf31d3639dd6a4 (patch) | |
tree | 781fdbc6c741ee23bfd02916b2d3d4d1631a90bc /llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp | |
parent | cb4fb3aa18885d34512fc93f7aa26e9145a47e56 (diff) | |
download | llvm-a84891698a2a13780d3804686ebf31d3639dd6a4.zip llvm-a84891698a2a13780d3804686ebf31d3639dd6a4.tar.gz llvm-a84891698a2a13780d3804686ebf31d3639dd6a4.tar.bz2 |
[instcombine] Scalarize operands of vector geps if possible (#145402)
If we have a gep with vector indices which were splats (either constants
or shuffles), prefer the scalar form of the index. If all operands are
scalarizable, then prefer a scalar gep with splat following.
This does loose some information about undef/poison lanes, but I'm not
sure that's significant versus the number of downstream transformations
which get confused by having to manual scalarize operands.
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp')
0 files changed, 0 insertions, 0 deletions