diff options
author | Nathan Gauër <brioche@google.com> | 2025-07-31 14:14:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-07-31 14:14:00 +0200 |
commit | 67273393b11954146471ab6b637adf710ef81fda (patch) | |
tree | 38ba99e816d689168cabd9eb85c81cb01e1087dd /llvm/unittests/Support/VirtualFileSystemTest.cpp | |
parent | 49b001474229cd935bf71340bb327f03721d9d00 (diff) | |
download | llvm-67273393b11954146471ab6b637adf710ef81fda.zip llvm-67273393b11954146471ab6b637adf710ef81fda.tar.gz llvm-67273393b11954146471ab6b637adf710ef81fda.tar.bz2 |
[VectorCombine][TTI] Prevent extract/ins rewrite to GEP (#150216)
Using GEP to index into a vector is not disallowed, but not recommended.
The SPIR-V backend needs to generate structured access into types, which
is impossible with an untyped GEP instruction unless we add more info to
the IR. Finding a solution is a work-in-progress, but in the meantime,
we'd like to reduce the amount of failures.
Preventing this optimizations from rewritting extract/insert
instructions into a GEP helps us lower more code to SPIR-V. This change
should be OK as it's only active when targeting SPIR-V and disabling a
non-recommended transformation.
Related to #145002
Diffstat (limited to 'llvm/unittests/Support/VirtualFileSystemTest.cpp')
0 files changed, 0 insertions, 0 deletions