aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorNikita Popov <npopov@redhat.com>2022-03-10 10:44:19 +0100
committerNikita Popov <npopov@redhat.com>2022-03-11 09:20:51 +0100
commit3ed643ea765411a3837b6fbb2e6f3b5a6bd616a3 (patch)
tree71312f899c6195d4324912c18d80555a255c2117 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parentc5f34d169244db3f321d75d036902751ec03fe42 (diff)
downloadllvm-3ed643ea765411a3837b6fbb2e6f3b5a6bd616a3.zip
llvm-3ed643ea765411a3837b6fbb2e6f3b5a6bd616a3.tar.gz
llvm-3ed643ea765411a3837b6fbb2e6f3b5a6bd616a3.tar.bz2
[AMDGPUPromoteAlloca] Make compatible with opaque pointers
This mainly changes the handling of bitcasts to not check the types being casted from/to -- we should only care about the actual load/store types. The GEP handling is also changed to not care about types, and just make sure that we get an offset corresponding to a vector element. This was a bit of a struggle for me, because this code seems to be pretty sensitive to small changes. The end result seems to produce strictly better results for the existing test coverage though, because we can now deal with more situations involving bitcasts. Differential Revision: https://reviews.llvm.org/D121371
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions