From: Jeff Law Date: Mon, 28 Apr 2014 13:38:19 +0000 (-0600) Subject: re PR tree-optimization/60902 (ffmpeg built with gcc 4.9 RC produces incorrect flac... X-Git-Tag: releases/gcc-5.1.0~7886 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=07357f2f5a81e008b78af738e5e0050d850425a8;p=thirdparty%2Fgcc.git re PR tree-optimization/60902 (ffmpeg built with gcc 4.9 RC produces incorrect flac playback code) PR tree-optimization/60902 * tree-ssa-threadedge.c (record_temporary_equivalences_from_stmts_at_dest): Only iterate over real defs when invalidating outputs from statements that do not produce useful outputs for threading. From-SVN: r209860 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 61fd558d29de..89930b0042c2 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,11 @@ +2014-04-28 Jeff Law + + PR tree-optimization/60902 + * tree-ssa-threadedge.c + (record_temporary_equivalences_from_stmts_at_dest): Only iterate + over real defs when invalidating outputs from statements that do not + produce useful outputs for threading. + 2014-04-28 Richard Biener PR tree-optimization/60979 diff --git a/gcc/tree-ssa-threadedge.c b/gcc/tree-ssa-threadedge.c index 8a0103b1637f..7621348944f3 100644 --- a/gcc/tree-ssa-threadedge.c +++ b/gcc/tree-ssa-threadedge.c @@ -398,7 +398,7 @@ record_temporary_equivalences_from_stmts_at_dest (edge e, ssa_op_iter iter; if (backedge_seen) - FOR_EACH_SSA_TREE_OPERAND (op, stmt, iter, SSA_OP_ALL_DEFS) + FOR_EACH_SSA_TREE_OPERAND (op, stmt, iter, SSA_OP_DEF) { /* This call only invalidates equivalences created by PHI nodes. This is by design to keep the cost of