]> git.ipfire.org Git - thirdparty/gcc.git/commit
xtensa: Remove variables only used to pass the return of end_sequence()
authorTakayuki 'January June' Suwa <jjsuwa_sys3175@yahoo.co.jp>
Sun, 14 Dec 2025 13:04:43 +0000 (22:04 +0900)
committerMax Filippov <jcmvbkbc@gmail.com>
Tue, 16 Dec 2025 12:17:08 +0000 (04:17 -0800)
commit3b4e36f6ef191a17e98ae566a96ef91c50302aac
tree741b25255743ff78031f6d85ba08564a4923df3c
parent56015c5bc150e7140088054f06c10c2ff4219a3f
xtensa: Remove variables only used to pass the return of end_sequence()

As a result of the automatic replacement by commit 4dd13988c93c24ba3605f4b9cafc97515c34f2ac,
there are several code fragments that receive the return value of
end_sequence() and immediately use it as the return value of the function
itself.

   rtx_insn *insn;
   ...
   insn = end_sequence ();
   return insn;

It is clear that in such cases, it would be more natural to pass the return
value of end_sequence() directly to the return statement without passing it
through a variable.

Applying this patch naturally does not change any functionality.

gcc/ChangeLog:

* config/xtensa/xtensa.cc
(xtensa_expand_block_set_libcall,
xtensa_expand_block_set_unrolled_loop,
xtensa_expand_block_set_small_loop, xtensa_call_tls_desc):
Change the return statement to pass the return value of
end_sequence() directly without going through a variable, and
remove the definition of that variable.
gcc/config/xtensa/xtensa.cc