https://gcc.gnu.org/g:037796275e24ee0d36c2072b3e6883e4fb04fa41

commit r17-5206-g037796275e24ee0d36c2072b3e6883e4fb04fa41
Author: Richard Sandiford <[email protected]>
Date:   Wed Oct 14 19:43:51 2026 +0100

    aarch64: Remove one form of gimple_folder::assign
    
    The tree_code form of gimple_folder::assign seems to be unused.
    And that's probably a good thing.  If we need to emit supporting
    arithmetic, we should use the standard gimple_build interface
    rather than rolling our own.
    
    gcc/
            * config/aarch64/aarch64-acle-builtins.h
            (gimple_folder::assign): Delete.
            * config/aarch64/aarch64-acle-builtins.cc
            (gimple_folder::assign): Likewise.

Diff:
---
 gcc/config/aarch64/aarch64-acle-builtins.cc | 12 ------------
 gcc/config/aarch64/aarch64-acle-builtins.h  |  2 --
 2 files changed, 14 deletions(-)

diff --git a/gcc/config/aarch64/aarch64-acle-builtins.cc 
b/gcc/config/aarch64/aarch64-acle-builtins.cc
index 5abcc01b96bf..2e4632bcb315 100644
--- a/gcc/config/aarch64/aarch64-acle-builtins.cc
+++ b/gcc/config/aarch64/aarch64-acle-builtins.cc
@@ -3179,18 +3179,6 @@ gimple_folder::assign (tree lhs, tree rhs)
   return stmt;
 }
 
-/* Insert a `lhs = code<rhs1, rhs2, rhs3>` statement before the current
-   statement.
-   Returns the new statement.  */
-gassign *
-gimple_folder::assign (tree lhs, tree_code code, tree rhs1, tree rhs2,
-                      tree rhs3)
-{
-  auto stmt = gimple_build_assign (lhs, code, rhs1, rhs2, rhs3);
-  gsi_insert_before (this->gsi, stmt, GSI_SAME_STMT);
-  return stmt;
-}
-
 function_expander::function_expander (const function_instance &instance,
                                      tree fndecl, tree call_expr_in,
                                      rtx possible_target_in)
diff --git a/gcc/config/aarch64/aarch64-acle-builtins.h 
b/gcc/config/aarch64/aarch64-acle-builtins.h
index eb39bbdab885..ca0f53d70865 100644
--- a/gcc/config/aarch64/aarch64-acle-builtins.h
+++ b/gcc/config/aarch64/aarch64-acle-builtins.h
@@ -661,8 +661,6 @@ public:
 
   tree force_val (tree expr);
   gassign *assign (tree lhs, tree rhs);
-  gassign *assign (tree lhs, tree_code code, tree rhs1, tree rhs2 = NULL_TREE,
-                  tree rhs3 = NULL_TREE);
 
   gimple *fold_to_cstu (poly_uint64);
   gimple *fold_to_pfalse ();

Reply via email to