PR tree-optimization/88444
* tree-inline.c (fold_marked_statements): Iterate up to
last_basic_block_for_fn rather than n_basic_blocks_for_fn.
* gcc.dg/tree-ssa/pr88444.c: New test.
From-SVN: r267113
2018-12-13 Jakub Jelinek <jakub@redhat.com>
+ PR tree-optimization/88444
+ * tree-inline.c (fold_marked_statements): Iterate up to
+ last_basic_block_for_fn rather than n_basic_blocks_for_fn.
+
PR rtl-optimization/88470
* cfgcleanup.c (outgoing_edges_match): If the function is
shrink-wrapped and bb1 ends with a JUMP_INSN with a single fake
2018-12-13 Jakub Jelinek <jakub@redhat.com>
+ PR tree-optimization/88444
+ * gcc.dg/tree-ssa/pr88444.c: New test.
+
PR rtl-optimization/88470
* gcc.target/i386/pr88470.c: New test.
--- /dev/null
+/* PR tree-optimization/88444 */
+/* { dg-do compile } */
+/* { dg-options "-O1 -finline-functions -finline-small-functions -fdump-tree-fixup_cfg3" } */
+/* { dg-final { scan-tree-dump-not " = \\(long int\\) 0;" "fixup_cfg3" } } */
+
+#include "../pr88444.c"
static void
fold_marked_statements (int first, hash_set<gimple *> *statements)
{
- for (; first < n_basic_blocks_for_fn (cfun); first++)
+ for (; first < last_basic_block_for_fn (cfun); first++)
if (BASIC_BLOCK_FOR_FN (cfun, first))
{
gimple_stmt_iterator gsi;