aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2023-03-28 09:31:36 +0200
committerRichard Biener <rguenther@suse.de>2023-03-28 09:32:54 +0200
commitb462947dae9f8c0dd7c11165ccfdf6acd6f12a1c (patch)
tree388c8caea033f2220a84d45b99990c7cdf22e364 /gcc
parent21c74b6ea41d21ef96813b34bfa55c51a82d6c99 (diff)
downloadgcc-b462947dae9f8c0dd7c11165ccfdf6acd6f12a1c.zip
gcc-b462947dae9f8c0dd7c11165ccfdf6acd6f12a1c.tar.gz
gcc-b462947dae9f8c0dd7c11165ccfdf6acd6f12a1c.tar.bz2
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.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cfgcleanup.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cfgcleanup.cc b/gcc/cfgcleanup.cc
index 4cd3387..194e0e5 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);