diff options
| author | Mehdi Amini <mehdi.amini@apple.com> | 2016-06-10 16:19:46 +0000 |
|---|---|---|
| committer | Mehdi Amini <mehdi.amini@apple.com> | 2016-06-10 16:19:46 +0000 |
| commit | bbacddfe92a9398daa3c7677ebd5ff4b68feed7a (patch) | |
| tree | 7e4c3508440676c3957de32fb7e91691476f8be4 /llvm/lib/Analysis/CallGraphSCCPass.cpp | |
| parent | b8598968159a3433b2154a33cb72a6533f29f734 (diff) | |
| download | bcm5719-llvm-bbacddfe92a9398daa3c7677ebd5ff4b68feed7a.tar.gz bcm5719-llvm-bbacddfe92a9398daa3c7677ebd5ff4b68feed7a.zip | |
Interprocedural Register Allocation (IPRA) Analysis
Add an option to enable the analysis of MachineFunction register
usage to extract the list of clobbered registers.
When enabled, the CodeGen order is changed to be bottom up on the Call
Graph.
The analysis is split in two parts, RegUsageInfoCollector is the
MachineFunction Pass that runs post-RA and collect the list of
clobbered registers to produce a register mask.
An immutable pass, RegisterUsageInfo, stores the RegMask produced by
RegUsageInfoCollector, and keep them available. A future tranformation
pass will use this information to update every call-sites after
instruction selection.
Patch by Vivek Pandya <vivekvpandya@gmail.com>
Differential Revision: http://reviews.llvm.org/D20769
llvm-svn: 272403
Diffstat (limited to 'llvm/lib/Analysis/CallGraphSCCPass.cpp')
| -rw-r--r-- | llvm/lib/Analysis/CallGraphSCCPass.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Analysis/CallGraphSCCPass.cpp b/llvm/lib/Analysis/CallGraphSCCPass.cpp index 71226bd25ca..29c4ba980cd 100644 --- a/llvm/lib/Analysis/CallGraphSCCPass.cpp +++ b/llvm/lib/Analysis/CallGraphSCCPass.cpp @@ -638,3 +638,7 @@ bool CallGraphSCCPass::skipSCC(CallGraphSCC &SCC) const { .getOptBisect() .shouldRunPass(this, SCC); } + +char DummyCGSCCPass::ID = 0; +INITIALIZE_PASS(DummyCGSCCPass, "DummyCGSCCPass", "DummyCGSCCPass", false, + false) |

