Commit 358581c
committed
[AMDGPU] Convert AMDGPUResourceUsageAnalysis pass from Module to MF pass (llvm#102913)
Converts AMDGPUResourceUsageAnalysis pass from Module to MachineFunction
pass. Moves function resource info propagation to to MC layer (through
helpers in AMDGPUMCResourceInfo) by generating MCExprs for every
function resource which the emitters have been prepped for.
Fixes llvm#64863
[AMDGPU] Fix stack size metadata for functions with direct and indirect calls (llvm#110828)
When a function has an external call, it should still use the stack
sizes of direct, known, calls to calculate its own stack size
[AMDGPU] Fix resource usage information for unnamed functions (llvm#115320)
Resource usage information would try to overwrite unnamed functions if
there are multiple within the same compilation unit. This aims to either
use the `MCSymbol` assigned to the unnamed function (i.e.,
`CurrentFnSym`), or, rematerialize the `MCSymbol` for the unnamed
function.
Reapply [AMDGPU] Avoid resource propagation for recursion through multiple functions (llvm#112251)
I was wrong last patch. I viewed the `Visited` set purely as a possible
recursion deterrent where functions calling a callee multiple times are
handled elsewhere. This doesn't consider cases where a function is
called multiple times by different callers still part of the same call
graph. New test shows the aforementioned case.
Reapplies llvm#111004, fixes llvm#115562.
[AMDGPU] Newly added test modified for recent SGPR use change (llvm#116427)
Mistimed rebase for llvm#112251 which added new tests which did not consider
the changes introduced in llvm#112403 yet
Change-Id: I4dfe6a1b679137e080a6d2b44016347ea704b0141 parent 55f7329 commit 358581c
File tree
39 files changed
+900
-437
lines changed- clang/test/Frontend
- llvm
- docs
- lib/Target/AMDGPU
- MCTargetDesc
- Utils
- test/CodeGen/AMDGPU
39 files changed
+900
-437
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1818 | 1818 | | |
1819 | 1819 | | |
1820 | 1820 | | |
| 1821 | + | |
| 1822 | + | |
| 1823 | + | |
| 1824 | + | |
| 1825 | + | |
| 1826 | + | |
| 1827 | + | |
| 1828 | + | |
| 1829 | + | |
| 1830 | + | |
| 1831 | + | |
| 1832 | + | |
| 1833 | + | |
| 1834 | + | |
| 1835 | + | |
| 1836 | + | |
| 1837 | + | |
| 1838 | + | |
| 1839 | + | |
| 1840 | + | |
| 1841 | + | |
| 1842 | + | |
| 1843 | + | |
| 1844 | + | |
| 1845 | + | |
| 1846 | + | |
| 1847 | + | |
| 1848 | + | |
| 1849 | + | |
| 1850 | + | |
| 1851 | + | |
| 1852 | + | |
| 1853 | + | |
| 1854 | + | |
| 1855 | + | |
| 1856 | + | |
| 1857 | + | |
| 1858 | + | |
| 1859 | + | |
| 1860 | + | |
| 1861 | + | |
| 1862 | + | |
| 1863 | + | |
| 1864 | + | |
| 1865 | + | |
| 1866 | + | |
| 1867 | + | |
| 1868 | + | |
| 1869 | + | |
1821 | 1870 | | |
1822 | 1871 | | |
1823 | 1872 | | |
| |||
0 commit comments