summaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorNikita Popov <npopov@redhat.com>2023-06-27 14:53:40 +0200
committerNikita Popov <npopov@redhat.com>2023-06-27 15:20:55 +0200
commit793eb0c0e4ffadc1cfebcda0c0cb1bcc2311def2 (patch)
tree91c4c37343c4da20812b21234c26aac5a03c454b /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parent58056ae299633ed701f9ea6bd1fdd573abe7e799 (diff)
[InstSimplify] Make sure offsets have same size in computePointerICmp()
The way this is currently implemented the accumulated offsets can end up having a different size, which causes unnecessary complication for further extension of the code. Don't strip pointer casts at the start and rely on stripAndAccumulate to do any necessary stripping. It gracefully handles different index sizes and will always retain the width of the original pointer index type. This is not NFC, but unlikely to make any practical difference.
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions