diff options
author | Magnus Lång <[email protected]> | 2016-06-10 14:58:55 +0200 |
---|---|---|
committer | Magnus Lång <[email protected]> | 2016-09-02 15:59:16 +0200 |
commit | 2ab941a282f56431e1ebc3713a8853c0db495c29 (patch) | |
tree | 8f3d7640e3923e2ebc367b4f5f956f96ae7aea97 /lib/hipe | |
parent | 64ea9ff575e062221b5aefd6ace665f41c7f6d2c (diff) | |
download | otp-2ab941a282f56431e1ebc3713a8853c0db495c29.tar.gz otp-2ab941a282f56431e1ebc3713a8853c0db495c29.tar.bz2 otp-2ab941a282f56431e1ebc3713a8853c0db495c29.zip |
hipe: clean up unnecessary catches
Diffstat (limited to 'lib/hipe')
-rw-r--r-- | lib/hipe/regalloc/hipe_graph_coloring_regalloc.erl | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/lib/hipe/regalloc/hipe_graph_coloring_regalloc.erl b/lib/hipe/regalloc/hipe_graph_coloring_regalloc.erl index 1a3ea90c05..f71feebfc6 100644 --- a/lib/hipe/regalloc/hipe_graph_coloring_regalloc.erl +++ b/lib/hipe/regalloc/hipe_graph_coloring_regalloc.erl @@ -113,11 +113,6 @@ regalloc(CFG, SpillIndex, SpillLimit, Target, _Options) -> %% build_ig(CFG, Target) -> - try build_ig0(CFG, Target) - catch error:Rsn -> exit({?MODULE, build_ig, Rsn}) - end. - -build_ig0(CFG, Target) -> Live = Target:analyze(CFG), NumN = Target:number_of_temporaries(CFG), % poss. N-1? {IG, Spill} = build_ig_bbs(Target:labels(CFG), @@ -208,17 +203,8 @@ set_spill_cost(X, N, Spill) -> %% * add low-degree neighbors of z to low %% * restart the while-loop above -color(IG, Spill, PhysRegs, SpillIx, SpillLimit, NumNodes, Target, NotAllocatable) -> - try color_0(IG, Spill, PhysRegs, SpillIx, SpillLimit, - NumNodes, Target, NotAllocatable) - catch - error:Rsn -> - ?error_msg("Coloring failed with ~p~n", [Rsn]), - ?EXIT(Rsn) - end. - -color_0(IG, Spill, PhysRegs, SpillIx, SpillLimit, NumNodes, Target, - NotAllocatable) -> +color(IG, Spill, PhysRegs, SpillIx, SpillLimit, NumNodes, Target, + NotAllocatable) -> ?report("simplification of IG~n", []), K = ordsets:size(PhysRegs), Nodes = list_ig(IG), |