summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/RegAllocLinearScan.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-10-29 08:39:34 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-10-29 08:39:34 +0000
commitce3ccc1ea0aae3e18a706e89fd836fa06f5c2a37 (patch)
tree6ea43f38a3ab12dbc03b7c59cc2c50fd4d9c5027 /llvm/lib/CodeGen/RegAllocLinearScan.cpp
parente74f2c263317cf7679f7759b6b267f7394ea2e31 (diff)
downloadbcm5719-llvm-ce3ccc1ea0aae3e18a706e89fd836fa06f5c2a37.tar.gz
bcm5719-llvm-ce3ccc1ea0aae3e18a706e89fd836fa06f5c2a37.zip
- More pre-split fixes: spill slot live interval computation bug; restore point bug.
- If a def is spilt, remember its spill index to allow its reuse. llvm-svn: 58375
Diffstat (limited to 'llvm/lib/CodeGen/RegAllocLinearScan.cpp')
-rw-r--r--llvm/lib/CodeGen/RegAllocLinearScan.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/RegAllocLinearScan.cpp b/llvm/lib/CodeGen/RegAllocLinearScan.cpp
index 8020aa152e4..919b94c5577 100644
--- a/llvm/lib/CodeGen/RegAllocLinearScan.cpp
+++ b/llvm/lib/CodeGen/RegAllocLinearScan.cpp
@@ -550,7 +550,7 @@ static void addStackInterval(LiveInterval *cur, LiveStacks *ls_,
SI.weight += Weight;
VNInfo *VNI;
- if (SI.getNumValNums())
+ if (SI.hasAtLeastOneValue())
VNI = SI.getValNumInfo(0);
else
VNI = SI.getNextValue(~0U, 0, ls_->getVNInfoAllocator());
OpenPOWER on IntegriCloud