diff options
author | Evan Cheng <evan.cheng@apple.com> | 2008-10-29 08:39:34 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2008-10-29 08:39:34 +0000 |
commit | ce3ccc1ea0aae3e18a706e89fd836fa06f5c2a37 (patch) | |
tree | 6ea43f38a3ab12dbc03b7c59cc2c50fd4d9c5027 /llvm/lib/CodeGen/RegAllocLinearScan.cpp | |
parent | e74f2c263317cf7679f7759b6b267f7394ea2e31 (diff) | |
download | bcm5719-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.cpp | 2 |
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()); |