Skip to content

Commit 4796b4a

Browse files
committed
[GlobalOpt] Make global SRA offset based
Currently global SRA uses the GEP structure to determine how to split the global. This patch instead analyses the loads and stores that are performed on the global, and collects which types are used at which offset, and then splits the global according to those. This is both more general, and works fine with opaque pointers. This is also closer to how ordinary SROA is performed. Differential Revision: https://reviews.llvm.org/D117223
1 parent 64c108c commit 4796b4a

File tree

7 files changed

+245
-246
lines changed

7 files changed

+245
-246
lines changed

0 commit comments

Comments
 (0)