diff options
author | Kostis Sagonas <[email protected]> | 2015-10-05 23:53:27 +0200 |
---|---|---|
committer | Hans Bolinder <[email protected]> | 2015-10-09 11:37:54 +0200 |
commit | 9221ddadb0eb879462cd96183d3eaf6352830eb3 (patch) | |
tree | ce049dd5ee655643256375f1cdacb5bf90d599dc /lib/hipe/icode/hipe_icode_ssa_struct_reuse.erl | |
parent | b0ad54fdc41528ddff7c1767403a514a4e0a3f9c (diff) | |
download | otp-9221ddadb0eb879462cd96183d3eaf6352830eb3.tar.gz otp-9221ddadb0eb879462cd96183d3eaf6352830eb3.tar.bz2 otp-9221ddadb0eb879462cd96183d3eaf6352830eb3.zip |
Update and cleanup HiPE records
The bulk of the changes concerns cleanups and code refactorings concerning
record constructions that assigned 'undefined' to record fields whose type
did not contain this value. See commit 8ce35b2.
While at it, some new type definitions were introduced and type names were
used instead of record type notation. Minor code cleaups were also done.
Diffstat (limited to 'lib/hipe/icode/hipe_icode_ssa_struct_reuse.erl')
-rw-r--r-- | lib/hipe/icode/hipe_icode_ssa_struct_reuse.erl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/hipe/icode/hipe_icode_ssa_struct_reuse.erl b/lib/hipe/icode/hipe_icode_ssa_struct_reuse.erl index e350a6ff18..7613024787 100644 --- a/lib/hipe/icode/hipe_icode_ssa_struct_reuse.erl +++ b/lib/hipe/icode/hipe_icode_ssa_struct_reuse.erl @@ -2,7 +2,7 @@ %% %% %CopyrightBegin% %% -%% Copyright Ericsson AB 2007-2014. All Rights Reserved. +%% Copyright Ericsson AB 2007-2015. All Rights Reserved. %% %% Licensed under the Apache License, Version 2.0 (the "License"); %% you may not use this file except in compliance with the License. @@ -314,7 +314,7 @@ node_create(Label, Pred, Succ) -> %% tree - the tree of nodes, with labels as keys and node records as values -record(nodes, { - domtree :: hipe_dominators:domTree(), + domtree = none :: 'none' | hipe_dominators:domTree(), labels = none :: 'none' | [icode_lbl()], postorder = none :: 'none' | [icode_lbl()], start_label = none :: 'none' | icode_lbl(), @@ -390,7 +390,7 @@ update_del_red_test_set(Update) -> %%----------------------------------------------------------------------------- %% Main function called from the hipe_main module --spec struct_reuse(#cfg{}) -> #cfg{}. +-spec struct_reuse(cfg()) -> cfg(). struct_reuse(CFG) -> %% debug_init_case_count(?SR_INSTR_TYPE), |