Try to update dominance info in tree-call-cdce.c
authorRichard Sandiford <richard.sandiford@arm.com>
Sat, 7 Nov 2015 09:56:04 +0000 (09:56 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Sat, 7 Nov 2015 09:56:04 +0000 (09:56 +0000)
commitf127ea514dbd61dde99f6d86c05d753748b9f93e
treee6991c90c6ee33ae4de032d5acba2f29c1da2872
parent88419b5295091e664e993fc6d981b3fb149a3e7b
Try to update dominance info in tree-call-cdce.c

The pass would free the dominance info after making a change, but it
should be pretty easy to keep the information up-to-date when the call
has no EH edges.

Tested on x86_64-linux-gnu, arm-linux-gnueabi and aarch64-linux-gnu.

gcc/
* tree-call-cdce.c (shrink_wrap_one_built_in_call): Try to update
the dominance info; free it if we can't.
(pass_call_cdce::execute): Don't free the dominance info here.

From-SVN: r229916
gcc/ChangeLog
gcc/tree-call-cdce.c