-
Notifications
You must be signed in to change notification settings - Fork 15.2k
Description
Hi,
I am having difficulty getting llvm to use the RegAllocPBQP algorithm in 19.1.0, not that that's an issue in 19, I had the same difficulty in 15 before upgrading.
I have examined these ways to choose RegAllocPBQP:
-
"-regalloc={greedy,default,fast,basic}" does not support pbqp.
-
std::unique_ptrllvm::legacy::FunctionPassManager fpm;
fpm->add( llvm::createDefaultPBQPRegisterAllocator() );Asserts with "Pass [llvm::SlotIndexesWrapperPass] is not initialized"
Some thoughts:
A. Is RegAllocPBQP deprecated and I shouldn't bother?
B. Am I unaware of another way besides legacy FunctionPassManager to add the PBQP allocator? - which it seems would also require disabling "-regalloc" since otherwise it would seem two different allocators would be requested.
C. No one's gotten around to integrating RegAllocPBQP into the "-regalloc" methodology?
Notes:
- Target is x64
- Other than trying PBQP is there an option to block spilling?