diff options
author | Luke Lau <luke@igalia.com> | 2025-04-02 17:57:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-02 17:57:13 +0100 |
commit | 711b15d179b3bf861eceb75e30cb9a39d1d88857 (patch) | |
tree | 87a62984e892db5a8405cab4cec3ed3afb61ce31 /llvm/lib/Transforms/Utils/Local.cpp | |
parent | fa2a6d68c6f35e478af3425760ae39e866049eee (diff) | |
download | llvm-711b15d179b3bf861eceb75e30cb9a39d1d88857.zip llvm-711b15d179b3bf861eceb75e30cb9a39d1d88857.tar.gz llvm-711b15d179b3bf861eceb75e30cb9a39d1d88857.tar.bz2 |
[RISCV] Mark subvector extracts from index 0 as cheap (#134101)
Previously we only marked fixed length vector extracts as cheap, so this
extends it to any extract at index 0 which should just be a subreg
extract.
This allows extracts of i1 vectors to be considered for DAG combines,
but also scalable vectors too.
This causes some slight improvements with large legalized fixed-length
vectors, but the underlying motiviation for this is to actually prevent
an unprofitable DAG combine on a scalable vector in an upcoming patch.
Diffstat (limited to 'llvm/lib/Transforms/Utils/Local.cpp')
0 files changed, 0 insertions, 0 deletions