aboutsummaryrefslogtreecommitdiffstats
path: root/backend/Regalloc.ml
diff options
context:
space:
mode:
authorBernhard Schommer <bernhardschommer@gmail.com>2015-05-18 09:58:14 +0200
committerBernhard Schommer <bernhardschommer@gmail.com>2015-05-18 09:58:14 +0200
commit4663ad4b31e351e29a4d8d034ad4a961a48263f1 (patch)
treed21554c60ed607bf8fdd1476431f9707bf882604 /backend/Regalloc.ml
parent10def48b639b8e83ae6cc8bf9c14da8c12e98370 (diff)
parent5d017f110f6c23c29a182465ab7832a944c0ba26 (diff)
downloadcompcert-4663ad4b31e351e29a4d8d034ad4a961a48263f1.tar.gz
compcert-4663ad4b31e351e29a4d8d034ad4a961a48263f1.zip
Merge branch 'master' into json_export
Diffstat (limited to 'backend/Regalloc.ml')
-rw-r--r--backend/Regalloc.ml6
1 files changed, 2 insertions, 4 deletions
diff --git a/backend/Regalloc.ml b/backend/Regalloc.ml
index c286e946..aa4efc53 100644
--- a/backend/Regalloc.ml
+++ b/backend/Regalloc.ml
@@ -585,13 +585,11 @@ let add_interfs_instr g instr live =
(* like a move *)
IRC.add_pref g arg res
| EF_inline_asm(txt, sg, clob), _, _ ->
- (* clobbered regs interfere with live set
- and also with res and args for GCC compatibility *)
+ (* clobbered regs interfere with res and args for GCC compatibility *)
List.iter (fun c ->
- match Machregsaux.register_by_name (extern_atom c) with
+ match Machregs.register_by_name c with
| None -> ()
| Some mr ->
- add_interfs_destroyed g across [mr];
add_interfs_list_mreg g args mr;
if sg.sig_res <> None then add_interfs_list_mreg g res mr)
clob