<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/123970>123970</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
RegAllocPBQP inaccessible
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
Bob64375
</td>
</tr>
</table>
<pre>
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:
1. "-regalloc={greedy,default,fast,basic}" does not support pbqp.
2. std::unique_ptr<llvm::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?
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJxsVMuO4zYQ_Br60rAgU5Y1PujgxxrxIZvJboAcg5bYkphIpIbdGo_z9QGleWQWCximQTerqovVRGbbOqJS5UeVn1c4SedDefTVbpsV-ary5l7-YpU-qfSg0sMVcIAOn61rwdimsfXUyx1aEolbff88gHiYmEA6gm_UHvre14_H3x8B-9YHK90A1sFmn2ySVOkTOC8gHS5fShcM6MAyT7TUxZordGhmRMaB_s8cS3KoqPGBYBrbgMa6NoE3uR0-E9ALDtbRjMAEN7xzVFl33vNnkSo7LCc3CSit14FajP-p7KyKYxuIzF3pk6EGp16UPjXIcamQba2Ks9IajCeeu-JpHH0QGKunMVlgdQIsJrJkh8nZp4n-GiWo7BSdW7Z7arG-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