Commit a501d06
authored
`AAAddressSpace` currently only works for `LoadInst` and `StoreInst`
currently. For `StoreInst`, the corresponding use can be the pointer
operand, or value operand, or both. When it is used as value operand, it
can prevent `AMDGPUPromoteAlloca` from optimization in certain cases.
This patch changes the manifest method such that only pointer operand
will be rewritten.
1 parent 31d4f06 commit a501d06
File tree
2 files changed
+7
-3
lines changed- llvm
- lib/Transforms/IPO
- test/Transforms/Attributor
2 files changed
+7
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12550 | 12550 | | |
12551 | 12551 | | |
12552 | 12552 | | |
12553 | | - | |
| 12553 | + | |
12554 | 12554 | | |
| 12555 | + | |
| 12556 | + | |
| 12557 | + | |
| 12558 | + | |
| 12559 | + | |
12555 | 12560 | | |
12556 | 12561 | | |
12557 | 12562 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
| 23 | + | |
25 | 24 | | |
26 | 25 | | |
27 | 26 | | |
| |||
0 commit comments