Patchwork Fix PR56398

login
register
mail settings
Submitter Richard Guenther
Date Feb. 20, 2013, 1:35 p.m.
Message ID <alpine.LNX.2.00.1302201434320.3543@zhemvz.fhfr.qr>
Download mbox | patch
Permalink /patch/222084/
State New
Headers show

Comments

Richard Guenther - Feb. 20, 2013, 1:35 p.m.
This fixes an ICE because gimple_bb of a default def stmt is NULL.
Just don't do anything here, we're not going to adjust anything
anyway for them.

Bootstrapped and tested on x86_64-unknown-linux-gnu, applied.

Richard.

2013-02-20  Richard Biener  <rguenther@suse.de>

	PR tree-optimization/56398
	* tree-vect-loop-manip.c (adjust_debug_stmts): Skip
	SSA default defs.

Patch

Index: gcc/tree-vect-loop-manip.c
===================================================================
--- gcc/tree-vect-loop-manip.c	(revision 196169)
+++ gcc/tree-vect-loop-manip.c	(working copy)
@@ -187,6 +187,7 @@  adjust_debug_stmts (tree from, tree to,
 
   if (MAY_HAVE_DEBUG_STMTS
       && TREE_CODE (from) == SSA_NAME
+      && ! SSA_NAME_IS_DEFAULT_DEF (from)
       && ! virtual_operand_p (from))
     {
       ai.from = from;