[PATCH] D109259: [SROA] Support opaque pointers
Nikita Popov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 3 14:17:42 PDT 2021
nikic created this revision.
nikic added a reviewer: opaque-pointers.
Herald added subscribers: dexonsmith, hiraditya.
nikic requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Make the following changes in order to support opaque pointers in SROA:
- Generate i8 GEPs for opaque pointers.
- Explicitly enforce that promotable allocas only have stores of the alloca type -- previously this was implicitly enforced.
- Replace a check for pointer element type with load/store type.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D109259
Files:
llvm/lib/Transforms/Scalar/SROA.cpp
llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp
llvm/test/Transforms/SROA/basictest-opaque-ptrs.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D109259.370671.patch
Type: text/x-patch
Size: 99698 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210903/b82e7f12/attachment.bin>
More information about the llvm-commits
mailing list