]> git.ipfire.org Git - thirdparty/gcc.git/commit
rtl-optimization/109237 - speedup bb_is_just_return
authorRichard Biener <rguenther@suse.de>
Wed, 22 Mar 2023 09:05:19 +0000 (10:05 +0100)
committerRichard Biener <rguenther@suse.de>
Wed, 19 Apr 2023 08:28:42 +0000 (10:28 +0200)
commit8f81100115f68b37fb2723e987c14a3185d1f47d
treea1f531a5ddafa3ff6d56d67739c5d33de14401b3
parent794ffdb0fb6312ce07af0bfc797bef9f4cff4c61
rtl-optimization/109237 - speedup bb_is_just_return

For the testcase bb_is_just_return is on top of the profile, changing
it to walk BB insns backwards puts it off the profile.  That's because
in the forward walk you have to process possibly many debug insns
but in a backward walk you very likely run into control insns first.

PR rtl-optimization/109237
* cfgcleanup.cc (bb_is_just_return): Walk insns backwards.
gcc/cfgcleanup.cc