https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100775
--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Qing Zhao <qinz...@gcc.gnu.org>: https://gcc.gnu.org/g:b32305b41dcafc5fb6974c0da3ce2f62251afdbf commit r12-7183-gb32305b41dcafc5fb6974c0da3ce2f62251afdbf Author: Qing Zhao <qing.z...@oracle.com> Date: Thu Feb 10 16:40:39 2022 +0000 middle-end: updating the reg use in exit block for -fzero-call-used-regs [PR100775] 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. 2022-02-10 Qing Zhao <qing.z...@oracle.com> gcc/ChangeLog: PR middle-end/100775 * function.cc (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.