diff options
author | Farzon Lotfi <1802579+farzonl@users.noreply.github.com> | 2024-11-13 16:36:24 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-13 16:36:24 -0500 |
commit | 5ac624c8234fe0a62cbf0447dbf7035ea29d062e (patch) | |
tree | 06988a9eacd93114d1f652872e66836fd394dd81 /llvm/lib/CodeGen/MachineBranchProbabilityInfo.cpp | |
parent | de6d48d05d7aa233248d2f725654931cb1e2f6fd (diff) | |
download | llvm-5ac624c8234fe0a62cbf0447dbf7035ea29d062e.zip llvm-5ac624c8234fe0a62cbf0447dbf7035ea29d062e.tar.gz llvm-5ac624c8234fe0a62cbf0447dbf7035ea29d062e.tar.bz2 |
[DirectX] Flatten arrays (#114332)
- Relevant piece is `DXILFlattenArrays.cpp`
- Loads and Store Instruction visits are just for finding
GetElementPtrConstantExpr and splitting them.
- Allocas needed to be replaced with flattened allocas.
- Global arrays were similar to allocas. Only interesting piece here is
around initializers.
- Most of the work went into building correct GEP chains. The approach
here was a recursive strategy via `recursivelyCollectGEPs`.
- All intermediary GEPs get marked for deletion and only the leaf GEPs
get updated with the new index.
fixes [89646](https://github.com/llvm/llvm-project/issues/89646)
Diffstat (limited to 'llvm/lib/CodeGen/MachineBranchProbabilityInfo.cpp')
0 files changed, 0 insertions, 0 deletions