In GIMPLE we can always use SSA names, so do that as it is cheaper. Bootstrapped and tested on x86_64-unknown-linux-gnu, pushed.
So now we can remove create_tmp_reg_or_ssa_name. Richard. * gimple-fold.cc (create_tmp_reg_or_ssa_name): Always create a SSA name. --- gcc/gimple-fold.cc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/gcc/gimple-fold.cc b/gcc/gimple-fold.cc index f2be06e08c4..1524e825aaf 100644 --- a/gcc/gimple-fold.cc +++ b/gcc/gimple-fold.cc @@ -198,10 +198,7 @@ can_refer_decl_in_current_unit_p (tree decl, tree from_decl) tree create_tmp_reg_or_ssa_name (tree type, gimple *stmt) { - if (gimple_in_ssa_p (cfun)) - return make_ssa_name (type, stmt); - else - return create_tmp_reg (type); + return make_ssa_name (type, stmt); } /* CVAL is value taken from DECL_INITIAL of variable. Try to transform it into -- 2.43.0