From: Richard Biener Date: Tue, 28 Mar 2023 07:31:36 +0000 (+0200) Subject: Revert "rtl-optimization/109237 - speedup bb_is_just_return" X-Git-Tag: basepoints/gcc-14~318 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b462947dae9f8c0dd7c11165ccfdf6acd6f12a1c;p=thirdparty%2Fgcc.git Revert "rtl-optimization/109237 - speedup bb_is_just_return" This reverts commit 776a5bb5894315ab144dc74222fc580fde8fdd87. PR rtl-optimization/109311 * cfgcleanup.cc (bb_is_just_return): Revert previous change. --- diff --git a/gcc/cfgcleanup.cc b/gcc/cfgcleanup.cc index 4cd33878ef35..194e0e5de123 100644 --- a/gcc/cfgcleanup.cc +++ b/gcc/cfgcleanup.cc @@ -2608,7 +2608,7 @@ bb_is_just_return (basic_block bb, rtx_insn **ret, rtx_insn **use) if (bb == EXIT_BLOCK_PTR_FOR_FN (cfun)) return false; - FOR_BB_INSNS_REVERSE (bb, insn) + FOR_BB_INSNS (bb, insn) if (NONDEBUG_INSN_P (insn)) { rtx pat = PATTERN (insn);