regrename: Don't rename the dest of a REG_CFA_REGISTER (PR85645)
authorSegher Boessenkool <segher@kernel.crashing.org>
Wed, 9 May 2018 12:14:39 +0000 (14:14 +0200)
committerSegher Boessenkool <segher@gcc.gnu.org>
Wed, 9 May 2018 12:14:39 +0000 (14:14 +0200)
commit97741c118180621e47edb6350571077eb0bc28ca
treec5f025e476cf9eefd6c08e8d563901a3f6d13eb7
parentc35533d7e97fda61c50be8b8260157956cf388e2
regrename: Don't rename the dest of a REG_CFA_REGISTER (PR85645)

We should never change the destination of a REG_CFA_REGISTER, just
like for insns with a REG_CFA_RESTORE, because we need to have the
same control flow information on all branches that join.  It is very
doubtful that renaming the scratch registers used for prologue/epilogue
will help anything either.

PR rtl-optimization/85645
* regrename.c (build_def_use): Also kill the chains that include the
destination of a REG_CFA_REGISTER note.

From-SVN: r260075
gcc/ChangeLog
gcc/regrename.c