Message ID | db08f7bd-9bb5-5ab4-ca1c-0cb5dbe851f5@gmail.com |
---|---|
State | New |
Headers | show |
Series | [committed,PR,rtl-optimization/107182] Clear EDGE_CROSSING for jump->ret optimization | expand |
diff --git a/gcc/cfgrtl.cc b/gcc/cfgrtl.cc index 281a432f6a6..f31941a61f9 100644 --- a/gcc/cfgrtl.cc +++ b/gcc/cfgrtl.cc @@ -4055,6 +4055,7 @@ fixup_reorder_chain (void) ret_label = PATTERN (ret); dest = EXIT_BLOCK_PTR_FOR_FN (cfun); + e_fall->flags &= ~EDGE_CROSSING; /* E_FALL->dest might become unreachable as a result of replacing the jump with a return. So arrange to remove unreachable blocks. */