domwalk: optimize basic block sorting
authorAlexander Monakov <amonakov@ispras.ru>
Tue, 25 Jul 2017 10:53:58 +0000 (13:53 +0300)
committerAlexander Monakov <amonakov@gcc.gnu.org>
Tue, 25 Jul 2017 10:53:58 +0000 (13:53 +0300)
commite5df270eeccbc5892b7f40769e7725b13a36f7df
treeaaa2c656639ce03992bb20aee6dcd728ed3b4154
parent4287b4e84c4af7a331d1b0a390ab3d97f37120c2
domwalk: optimize basic block sorting

* domwalk.c (cmp_bb_postorder): Simplify.
(sort_bbs_postorder): New function.  Use it...
(dom_walker::walk): ...here to optimize common cases.

From-SVN: r250502
gcc/ChangeLog
gcc/domwalk.c