projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8936b94
)
Only call TRI::getRawAllocationOrder to resolve a target-dependent hint.
author
Jakob Stoklund Olesen
<stoklund@2pi.dk>
Fri, 17 Jun 2011 23:26:52 +0000
(23:26 +0000)
committer
Jakob Stoklund Olesen
<stoklund@2pi.dk>
Fri, 17 Jun 2011 23:26:52 +0000
(23:26 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133313
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/RegAllocLinearScan.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/RegAllocLinearScan.cpp
b/lib/CodeGen/RegAllocLinearScan.cpp
index 0818034c15c1a94adc5627f925009de618c6f451..7a2ea6c4084aded02a8f8803623278b43b75b5aa 100644
(file)
--- a/
lib/CodeGen/RegAllocLinearScan.cpp
+++ b/
lib/CodeGen/RegAllocLinearScan.cpp
@@
-1440,8
+1440,12
@@
unsigned RALinScan::getFreePhysReg(LiveInterval* cur,
if (TargetRegisterInfo::isVirtualRegister(physReg) && vrm_->hasPhys(physReg))
physReg = vrm_->getPhys(physReg);
- ArrayRef<unsigned> Order = tri_->getRawAllocationOrder(RC, Hint.first,
- physReg, *mf_);
+ ArrayRef<unsigned> Order;
+ if (Hint.first)
+ Order = tri_->getRawAllocationOrder(RC, Hint.first, physReg, *mf_);
+ else
+ Order = RegClassInfo.getOrder(RC);
+
assert(!Order.empty() && "No allocatable register in this register class!");
// Scan for the first available register.