mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-25 05:22:04 +00:00
[PBQP] Teach PassConfig to tell if the default register allocator is used.
This enables targets to adapt their pass pipeline to the register allocator in use. For example, with the AArch64 backend, using PBQP with the cortex-a57, the FPLoadBalancing pass is no longer necessary. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@220321 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -690,6 +690,12 @@ FunctionPass *TargetPassConfig::createRegAllocPass(bool Optimized) {
|
||||
return createTargetRegisterAllocator(Optimized);
|
||||
}
|
||||
|
||||
/// Return true if the default global register allocator is in use and
|
||||
/// has not be overriden on the command line with '-regalloc=...'
|
||||
bool TargetPassConfig::usingDefaultRegAlloc() const {
|
||||
return RegAlloc == &useDefaultRegisterAllocator;
|
||||
}
|
||||
|
||||
/// Add the minimum set of target-independent passes that are required for
|
||||
/// register allocation. No coalescing or scheduling.
|
||||
void TargetPassConfig::addFastRegAlloc(FunctionPass *RegAllocPass) {
|
||||
|
||||
Reference in New Issue
Block a user