mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 12:12:47 +01:00
The physical register + virtual register joining requirement was much too strict.
llvm-svn: 45253
This commit is contained in:
parent
1994e3038e
commit
d0bb7ee0a1
@ -396,7 +396,7 @@ bool SimpleRegisterCoalescing::JoinCopy(CopyRec TheCopy, bool &Again) {
|
||||
unsigned JoinVReg = SrcIsPhys ? repDstReg : repSrcReg;
|
||||
unsigned JoinPReg = SrcIsPhys ? repSrcReg : repDstReg;
|
||||
const TargetRegisterClass *RC = mf_->getSSARegMap()->getRegClass(JoinVReg);
|
||||
unsigned Threshold = allocatableRCRegs_[RC].count();
|
||||
unsigned Threshold = allocatableRCRegs_[RC].count() * 2;
|
||||
if (TheCopy.isBackEdge)
|
||||
Threshold *= 2; // Favors back edge copies.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user