mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 02:52:53 +02:00
[AArch64][RegisterBankInfo] Fix mapping cost for GPR.
In r292478, we changed the order of the enum that is referenced by PMI_FirstXXX. This had the side effect of changing the cost of the mapping of all the loads, instead of just the FPRs ones. Reinstate the higher cost for all but GPR loads. Note: This did not have any external visible effects: - For Fast mode, the cost would have been higher, but we don't care because we don't try to use alternative mappings. - For Greedy mode, the higher cost of the GPR loads, would have triggered the use of the supposedly alternative mapping, that would be in fact the same GPR mapping but with a lower cost. llvm-svn: 302452
This commit is contained in:
parent
a7b65b871b
commit
2987889926
@ -529,7 +529,7 @@ AArch64RegisterBankInfo::getInstrMapping(const MachineInstr &MI) const {
|
||||
// for the greedy mode the cost of the cross bank copy will
|
||||
// offset this number.
|
||||
// FIXME: Should be derived from the scheduling model.
|
||||
if (OpRegBankIdx[0] >= PMI_FirstFPR)
|
||||
if (OpRegBankIdx[0] != PMI_FirstGPR)
|
||||
Cost = 2;
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user