This repository was archived by the owner on Feb 21, 2026. It is now read-only.
Commit 1282ab8
[CIR] Add live object analysis pass
Add a backward dataflow analysis that computes object liveness at each
program point using points-to information. The analysis determines when
objects are last used, supporting control flow constructs including
loops, gotos, and region-based operations. Includes diagnostic pass
for emitting last-use remarks and cir-opt integration.
Co-authored-by: Tommy McMichen <tommymcmichen@fb.com>1 parent 2a4fc44 commit 1282ab8
10 files changed
Lines changed: 784 additions & 0 deletions
File tree
- clang
- include/clang/CIR/Dialect
- lib/CIR/Dialect/Transforms
- test/CIR/Transforms
- tools/cir-opt
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
159 | 168 | | |
160 | 169 | | |
161 | 170 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
0 commit comments