* gimple-fold.c (gimple_fold_call): Properly keep virtual
SSA form up-to-date when devirtualizing a call to
__builtin_unreachable and avoid fixing up EH info here.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@216266
138bc75d-0d04-0410-961f-
82ee72b054a4
+2014-10-15 Richard Biener <rguenther@suse.de>
+
+ * gimple-fold.c (gimple_fold_call): Properly keep virtual
+ SSA form up-to-date when devirtualizing a call to
+ __builtin_unreachable and avoid fixing up EH info here.
+
2014-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
Maxim Kuznetsov <maxim.kuznetsov@intel.com>
Anna Tikhonova <anna.tikhonova@intel.com>
gsi_insert_before (gsi, new_stmt, GSI_NEW_STMT);
}
else
- gsi_replace (gsi, new_stmt, true);
+ {
+ gimple_set_vuse (new_stmt, gimple_vuse (stmt));
+ gimple_set_vdef (new_stmt, gimple_vdef (stmt));
+ gsi_replace (gsi, new_stmt, false);
+ }
return true;
}
}