aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/Local.cpp
diff options
context:
space:
mode:
authorLuke Lau <luke@igalia.com>2025-04-02 17:57:13 +0100
committerGitHub <noreply@github.com>2025-04-02 17:57:13 +0100
commit711b15d179b3bf861eceb75e30cb9a39d1d88857 (patch)
tree87a62984e892db5a8405cab4cec3ed3afb61ce31 /llvm/lib/Transforms/Utils/Local.cpp
parentfa2a6d68c6f35e478af3425760ae39e866049eee (diff)
downloadllvm-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