reg-stack.c (propagate_stack): Always copy the source stack to the destination.
authorRoger Sayle <roger@eyesopen.com>
Sun, 29 May 2005 15:37:44 +0000 (15:37 +0000)
committerRoger Sayle <sayle@gcc.gnu.org>
Sun, 29 May 2005 15:37:44 +0000 (15:37 +0000)
commit0ac2a27ad751182f295a6baab384ca22c11e53b2
tree33f875d7a34eb17686fd2ba815611a406f5634cb
parent9cf5a7e38d9098ce4961b091f70c40e8eb287e65
reg-stack.c (propagate_stack): Always copy the source stack to the destination.

* reg-stack.c (propagate_stack): Always copy the source stack to
the destination.  This routine is now only called when this is safe.
(better_edge): New function split out from convert_regs_1 to
determine which of two edges is better to propagate across.
(convert_regs_1):  We need only search for a best edge if the
stack layout hasn't been defined yet.  Use better_edge to help
find beste.  No longer traverse unnecessary edges.

From-SVN: r100323
gcc/ChangeLog
gcc/reg-stack.c