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.
From-SVN: r216266
+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;
}
}