diff options
author | David Green <david.green@arm.com> | 2025-08-03 10:19:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-08-03 10:19:42 +0100 |
commit | d9971be83e5d23631b04b3ce40bfb2be01b6085e (patch) | |
tree | 5680a065c78b1c42e1a5e8209ff23d5a42945fb7 /clang-tools-extra/unittests/clang-tidy/LLVMModuleTest.cpp | |
parent | f72b3ec85267af38d55cd80060415079780406a4 (diff) | |
download | llvm-d9971be83e5d23631b04b3ce40bfb2be01b6085e.zip llvm-d9971be83e5d23631b04b3ce40bfb2be01b6085e.tar.gz llvm-d9971be83e5d23631b04b3ce40bfb2be01b6085e.tar.bz2 |
[InstCombine] Make foldCmpLoadFromIndexedGlobal more resilient to non-array geps. (#150639)
My understanding is that gep [n x i8] and gep i8 can be treated
equivalently - the array type conveys no extra information and could be
removed. This goes through foldCmpLoadFromIndexedGlobal and tries to
make it work for non-array gep types, so long as the index type still
matches the array being loaded.
Diffstat (limited to 'clang-tools-extra/unittests/clang-tidy/LLVMModuleTest.cpp')
0 files changed, 0 insertions, 0 deletions