aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2021-07-20 17:19:52 +0200
committerNikita Popov <nikita.ppv@gmail.com>2021-09-07 20:50:29 +0200
commit58db5f6e959419aaca20798835d75d3646b99293 (patch)
treeb223cc006acec0978c36d91fdb37462e08893a3b /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parent34528c32d23f98312434bb8d67510bef616e5b44 (diff)
downloadllvm-58db5f6e959419aaca20798835d75d3646b99293.zip
llvm-58db5f6e959419aaca20798835d75d3646b99293.tar.gz
llvm-58db5f6e959419aaca20798835d75d3646b99293.tar.bz2
[ConstFold] Support opaque pointers in constexpr GEPs
Support opaque pointers in SymbolicallyEvaluateGEP() by using the value type of a GlobalValue base or falling back to i8 if there isn't one. We don't unconditionally generate i8 GEPs here because that would lose inrange attribues, and because some optimizations on globals currently rely on GEP types (e.g. the globals SROA mentioned in the comment). Differential Revision: https://reviews.llvm.org/D109297
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions