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, and because some optimizations on globals currently rely on GEP types (e.g. the globals SROA mentioned in the comment).
Details
Details
- Reviewers
aeubanks - Group Reviewers
Restricted Project - Commits
- rG58db5f6e9594: [ConstFold] Support opaque pointers in constexpr GEPs
Summary
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
This revision is now accepted and ready to land.Sep 7 2021, 9:41 AM
Closed by commit rG58db5f6e9594: [ConstFold] Support opaque pointers in constexpr GEPs (authored by nikic). · Explain WhySep 7 2021, 11:50 AM
This revision was automatically updated to reflect the committed changes.