diff options
author | Magnus Lång <[email protected]> | 2016-06-10 19:29:22 +0200 |
---|---|---|
committer | Magnus Lång <[email protected]> | 2016-08-30 17:21:20 +0200 |
commit | d9b091472f9afb216fe9f0c763053baf89390a6c (patch) | |
tree | e7904d4146ac66bcbae6ac4a7e20874c6a7c07e1 /lib/hipe/arm/hipe_arm_main.erl | |
parent | 1567585dda8bc604871be06a37aa5d19ad6d28f3 (diff) | |
download | otp-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_main.erl')
-rw-r--r-- | lib/hipe/arm/hipe_arm_main.erl | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/hipe/arm/hipe_arm_main.erl b/lib/hipe/arm/hipe_arm_main.erl index c81cd92160..8a7fa86394 100644 --- a/lib/hipe/arm/hipe_arm_main.erl +++ b/lib/hipe/arm/hipe_arm_main.erl @@ -24,12 +24,14 @@ rtl_to_arm(MFA, RTL, Options) -> Defun1 = hipe_rtl_to_arm:translate(RTL), + CFG1 = hipe_arm_cfg:init(Defun1), %% io:format("~w: after translate\n", [?MODULE]), %% hipe_arm_pp:pp(Defun1), - Defun2 = hipe_arm_ra:ra(Defun1, Options), + CFG2 = hipe_arm_ra:ra(CFG1, Options), %% io:format("~w: after regalloc\n", [?MODULE]), - %% hipe_arm_pp:pp(Defun2), - Defun3 = hipe_arm_frame:frame(Defun2), + %% hipe_arm_pp:pp(hipe_arm_cfg:linearise(CFG2)), + CFG3 = hipe_arm_frame:frame(CFG2), + Defun3 = hipe_arm_cfg:linearise(CFG3), %% io:format("~w: after frame\n", [?MODULE]), %% hipe_arm_pp:pp(Defun3), Defun4 = hipe_arm_finalise:finalise(Defun3, Options), |