diff options
author | Henrik Nord <[email protected]> | 2014-03-19 08:48:32 +0100 |
---|---|---|
committer | Henrik Nord <[email protected]> | 2014-03-19 08:48:32 +0100 |
commit | d623f60a150e52f77491331529e172780dbc80ca (patch) | |
tree | 101da5f483c47ae4d74a5c3f82f4d56c2f812dcb /lib/hipe/regalloc/hipe_optimistic_regalloc.erl | |
parent | aab1afa8a63081f2c30f83ebe8b6caaac979795c (diff) | |
parent | 5795a20244dde1de8236eed8a0f43bc976bd1e0c (diff) | |
download | otp-d623f60a150e52f77491331529e172780dbc80ca.tar.gz otp-d623f60a150e52f77491331529e172780dbc80ca.tar.bz2 otp-d623f60a150e52f77491331529e172780dbc80ca.zip |
Merge branch 'kostis/hipe-rc2-patch'
* kostis/hipe-rc2-patch:
Cleanup and make sure warnings are treated as errors
Add specs for exported functions (to shut off a warning) and types in some record fields
Introduce and use a hipe_icode:icode() type
Substitude uses of lists:reverse(L1) ++ L2 with lists:reverse(L1, L2)
Diffstat (limited to 'lib/hipe/regalloc/hipe_optimistic_regalloc.erl')
-rw-r--r-- | lib/hipe/regalloc/hipe_optimistic_regalloc.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/hipe/regalloc/hipe_optimistic_regalloc.erl b/lib/hipe/regalloc/hipe_optimistic_regalloc.erl index 5bad31ade9..0278a896d2 100644 --- a/lib/hipe/regalloc/hipe_optimistic_regalloc.erl +++ b/lib/hipe/regalloc/hipe_optimistic_regalloc.erl @@ -958,9 +958,9 @@ splits_2({Cols, NonCols, OldSpillCost}, L, SpillCost) -> %% Merge two ordered sub-splits into one. spillCostOrderedMerge(Spl1, [], Spl) -> - lists:reverse(Spl) ++ Spl1; + lists:reverse(Spl, Spl1); spillCostOrderedMerge([], Spl2, Spl) -> - lists:reverse(Spl) ++ Spl2; + lists:reverse(Spl, Spl2); spillCostOrderedMerge(Spl1, Spl2, Spl) -> {_, _, SpillCost1} = hd(Spl1), {_, _, SpillCost2} = hd(Spl2), |