]> git.ipfire.org Git - thirdparty/gcc.git/commit
middle-end/100775 - updating the reg use in exit block for -fzero-call-used-regs
authorQing Zhao <qing.zhao@oracle.com>
Wed, 16 Mar 2022 20:18:54 +0000 (20:18 +0000)
committerQing Zhao <qing.zhao@oracle.com>
Wed, 16 Mar 2022 20:20:32 +0000 (20:20 +0000)
commit9b1faeb5bfef258780e313aa8302a43f98f3b442
treec987aced42c566ca43b054a8d35b1df8e7bb531c
parent6a1150d1524aeda3381b2171712e1a6611d441d6
middle-end/100775 - updating the reg use in exit block for -fzero-call-used-regs

GCC11 backport.

In the pass_zero_call_used_regs, when updating dataflow info after adding
the register zeroing sequence in the epilogue of the function, we should
call "df_update_exit_block_uses" to update the register use information in
the exit block to include all the registers that have been zeroed.

gcc/ChangeLog:

PR middle-end/100775
* function.c (gen_call_used_regs_seq): Call
df_update_exit_block_uses when updating df.

gcc/testsuite/ChangeLog:

PR middle-end/100775
* gcc.target/arm/pr100775.c: New test.
gcc/function.c
gcc/testsuite/gcc.target/arm/pr100775.c [new file with mode: 0644]