Commit 1d49ee6a by Maxim Kuvyrkov Committed by Maxim Kuvyrkov

re PR target/29794 (cc1 segfaults with -O3 -msched-control-spec)

2006-12-07  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>

	PR target/29794
	* sched-rgn.c (add_block1): Use correct initializer.

From-SVN: r119613
parent 9f919563
2006-12-07 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
PR target/29794
* sched-rgn.c (add_block1): Use correct initializer.
2006-12-07 Richard Guenther <rguenther@suse.de>
* tree-vect-transform.c (vectorizable_call): Fix leftover of
......
......@@ -3124,9 +3124,15 @@ add_block1 (basic_block bb, basic_block after)
is _always_ valid for access. */
i = BLOCK_TO_BB (after->index) + 1;
for (pos = ebb_head[i]; rgn_bb_table[pos] != after->index; pos--);
pos = ebb_head[i] - 1;
/* Now POS is the index of the last block in the region. */
/* Find index of basic block AFTER. */
for (; rgn_bb_table[pos] != after->index; pos--);
pos++;
gcc_assert (pos > ebb_head[i - 1]);
/* i - ebb right after "AFTER". */
/* ebb_head[i] - VALID. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment