aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp
diff options
context:
space:
mode:
authorNikita Popov <npopov@redhat.com>2025-09-01 09:58:11 +0200
committerGitHub <noreply@github.com>2025-09-01 09:58:11 +0200
commit055bfc027141bbfafd51fb43f5ab81ba3b480649 (patch)
treef50631d34e2044e1dedfe5b59e63cf5d0591c958 /llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp
parente82abde49454d0bd2c2d37b6209e1d21fbcbaa56 (diff)
downloadllvm-055bfc027141bbfafd51fb43f5ab81ba3b480649.zip
llvm-055bfc027141bbfafd51fb43f5ab81ba3b480649.tar.gz
llvm-055bfc027141bbfafd51fb43f5ab81ba3b480649.tar.bz2
[InstCombine] Strip leading zero indices from GEP (#155415)
GEPs are often in the form `gep [N x %T], ptr %p, i64 0, i64 %idx`. Canonicalize these to `gep %T, ptr %p, i64 %idx`. This enables transforms that only support one GEP index to work and improves CSE. Various transforms were recently hardened to make sure they still work without the leading index.
Diffstat (limited to 'llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp')
0 files changed, 0 insertions, 0 deletions