https://gcc.gnu.org/g:c92584742bbfe3e2d7972e14a7911542377175e5

commit r16-1085-gc92584742bbfe3e2d7972e14a7911542377175e5
Author: Richard Biener <rguent...@suse.de>
Date:   Tue Jun 3 15:02:16 2025 +0200

    Improve create_tmp_reg_or_ssa_name, always create SSA name
    
    In GIMPLE we can always use SSA names, so do that as it is cheaper.
    
            * gimple-fold.cc (create_tmp_reg_or_ssa_name): Always
            create a SSA name.

Diff:
---
 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 0f437616d770..185f9db69d89 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

Reply via email to