aboutsummaryrefslogtreecommitdiffstats
path: root/lib/hipe/regalloc/hipe_optimistic_regalloc.erl
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2017-03-27 16:50:29 +0200
committerGitHub <[email protected]>2017-03-27 16:50:29 +0200
commit236f2cecd0b0d8116c000187780f3981e6e9b388 (patch)
tree1af61e549d3453f07381d313d52bd268a817f276 /lib/hipe/regalloc/hipe_optimistic_regalloc.erl
parentbe2b0e6e5b4786cb6f7d56cdcdc05339aa214406 (diff)
parent3cf6a85eb32e173b533de47bcd530364ceb20dc5 (diff)
downloadotp-236f2cecd0b0d8116c000187780f3981e6e9b388.tar.gz
otp-236f2cecd0b0d8116c000187780f3981e6e9b388.tar.bz2
otp-236f2cecd0b0d8116c000187780f3981e6e9b388.zip
Merge pull request #1387 from margnus1/hipe-spilllimit-fix
HiPE: Fix off-by-one bug in register allocators Fix for PR-1380
Diffstat (limited to 'lib/hipe/regalloc/hipe_optimistic_regalloc.erl')
-rw-r--r--lib/hipe/regalloc/hipe_optimistic_regalloc.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/hipe/regalloc/hipe_optimistic_regalloc.erl b/lib/hipe/regalloc/hipe_optimistic_regalloc.erl
index b96920cbcf..a019c46b90 100644
--- a/lib/hipe/regalloc/hipe_optimistic_regalloc.erl
+++ b/lib/hipe/regalloc/hipe_optimistic_regalloc.erl
@@ -1933,7 +1933,7 @@ findCheapest([Node|Nodes], IG, Cost, Cheapest, SpillLimit) ->
%% limit are extremely expensive.
getCost(Node, IG, SpillLimit) ->
- case Node > SpillLimit of
+ case Node >= SpillLimit of
true -> inf;
false ->
SpillCost = hipe_ig:node_spill_cost(Node, IG),