Fix PR56398

Submitted by Richard Guenther on Feb. 20, 2013, 1:35 p.m.

Details

Message ID alpine.LNX.2.00.1302201434320.3543@zhemvz.fhfr.qr
State New
Headers show

Commit Message

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 hide | download patch | download mbox

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;