~statik/ubuntu/maverick/erlang/erlang-merge-testing

« back to all changes in this revision

Viewing changes to lib/hipe/rtl/hipe_rtl.erl

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2009-11-06 18:54:42 UTC
  • mfrom: (3.3.4 sid)
  • Revision ID: james.westby@ubuntu.com-20091106185442-bqxb11qghumvmvx2
Tags: 1:13.b.2.1-dfsg-1ubuntu1
* Merge with Debian testing; remaining Ubuntu changes:
  - Drop libwxgtk2.8-dev build dependency. Wx isn't in main, and not
    supposed to. (LP #438365)
  - Drop erlang-wx binary.
  - Drop erlang-wx dependency from -megaco, -common-test, and -reltool, they
    do not really need wx. Also drop it from -debugger; the GUI needs wx,
    but it apparently has CLI bits as well, and is also needed by -megaco,
    so let's keep the package for now.

Show diffs side-by-side

added added

removed removed

Lines of Context:
831
831
%% change_var_to_reg(Var) ->
832
832
%%   mk_reg(var_index(Var)).
833
833
 
834
 
-record(rtl_reg, {index,        % integer()
835
 
                  is_gc_safe}). % bool()
 
834
-record(rtl_reg, {index      :: integer(),
 
835
                  is_gc_safe :: boolean()}).
836
836
 
837
837
mk_reg(Num, IsGcSafe) when is_integer(Num), Num >= 0 ->
838
838
  #rtl_reg{index=Num,is_gc_safe=IsGcSafe}.
1134
1134
subst1([{X,Y}|_], X) -> Y;
1135
1135
subst1([_|Xs], X) -> subst1(Xs,X).
1136
1136
 
1137
 
%% @spec is_safe(rtl_instruction()) -> bool()
 
1137
%% @spec is_safe(rtl_instruction()) -> boolean()
1138
1138
%%
1139
1139
%% @doc Succeeds if an RTL instruction is safe and can be deleted if the
1140
1140
%% result is not used.
1185
1185
%% is_alu_op(sra) -> true;
1186
1186
%% is_alu_op(_) -> false.
1187
1187
 
1188
 
%% @spec is_shift_op(rtl_operator()) -> bool()
 
1188
%% @spec is_shift_op(rtl_operator()) -> boolean()
1189
1189
%%
1190
1190
%% @doc  Succeeds if its argument is an RTL operator.
1191
1191
is_shift_op(sll) -> true;