function: Do the CLEANUP_EXPENSIVE after shrink-wrapping, not before
authorSegher Boessenkool <segher@kernel.crashing.org>
Wed, 18 May 2016 10:58:57 +0000 (12:58 +0200)
committerSegher Boessenkool <segher@gcc.gnu.org>
Wed, 18 May 2016 10:58:57 +0000 (12:58 +0200)
commit63d0f6ab560336d34b0a8f9b9b111c4a17e8737f
tree2209c8792eab859e724568eab2cb9271ef198026
parenta1e71b01801dbf67c2dc9d598b3e62091b4677b2
function: Do the CLEANUP_EXPENSIVE after shrink-wrapping, not before

We should do CLEANUP_EXPENSIVE after shrink-wrapping, because shrink-
wrapping creates constructs that CLEANUP_EXPENSIVE can optimise, and
nothing runs CLEANUP_EXPENSIVE later.

* function.c (rest_of_handle_thread_prologue_and_epilogue): Call
cleanup_cfg with CLEANUP_EXPENSIVE after shrink-wrapping instead
of before.  Add a comment.

From-SVN: r236372
gcc/ChangeLog
gcc/function.c