summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2007-12-20 02:23:25 +0000
committerEvan Cheng <evan.cheng@apple.com>2007-12-20 02:23:25 +0000
commita509537e25be59785062c2b181374e74619c246d (patch)
tree6aee90b6965cb5cd6d6e1f0a2d9e7297d978aba0 /llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp
parent61bc51ee978cf81f1e0bde06e327099b681e0b0b (diff)
downloadbcm5719-llvm-a509537e25be59785062c2b181374e74619c246d.tar.gz
bcm5719-llvm-a509537e25be59785062c2b181374e74619c246d.zip
The physical register + virtual register joining requirement was much too strict.
llvm-svn: 45253
Diffstat (limited to 'llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp')
-rw-r--r--llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp b/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp
index c608b8d1c4a..c03933944f8 100644
--- a/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp
+++ b/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp
@@ -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.
OpenPOWER on IntegriCloud