aboutsummaryrefslogtreecommitdiffstats
path: root/lib/hipe/arm/hipe_arm_ra_naive.erl
diff options
context:
space:
mode:
authorMagnus Lång <[email protected]>2016-06-10 19:29:22 +0200
committerMagnus Lång <[email protected]>2016-08-30 17:21:20 +0200
commitd9b091472f9afb216fe9f0c763053baf89390a6c (patch)
treee7904d4146ac66bcbae6ac4a7e20874c6a7c07e1 /lib/hipe/arm/hipe_arm_ra_naive.erl
parent1567585dda8bc604871be06a37aa5d19ad6d28f3 (diff)
downloadotp-d9b091472f9afb216fe9f0c763053baf89390a6c.tar.gz
otp-d9b091472f9afb216fe9f0c763053baf89390a6c.tar.bz2
otp-d9b091472f9afb216fe9f0c763053baf89390a6c.zip
hipe_arm: Minimise CFG<->linear conversions
Now, there will only ever be a single Linear->CFG conversion, just after lowering from RTL, and only ever a single CFG->Linear conversion, just before the finalise pass. Both of these now happen in hipe_arm_main.
Diffstat (limited to 'lib/hipe/arm/hipe_arm_ra_naive.erl')
-rw-r--r--lib/hipe/arm/hipe_arm_ra_naive.erl8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/hipe/arm/hipe_arm_ra_naive.erl b/lib/hipe/arm/hipe_arm_ra_naive.erl
index 6201269f44..0ea4b04092 100644
--- a/lib/hipe/arm/hipe_arm_ra_naive.erl
+++ b/lib/hipe/arm/hipe_arm_ra_naive.erl
@@ -24,7 +24,7 @@
-include("hipe_arm.hrl").
-ra(Defun, _Coloring_fp, _Options) -> % -> {Defun, Coloring}
- {NewDefun,_DidSpill} =
- hipe_arm_ra_postconditions:check_and_rewrite2(Defun, [], 'naive'),
- {NewDefun, []}.
+ra(CFG, _Coloring_fp, _Options) -> % -> {CFG, Coloring}
+ {NewCFG,_DidSpill} =
+ hipe_arm_ra_postconditions:check_and_rewrite2(CFG, [], 'naive'),
+ {NewCFG, []}.