]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
PR tree-optimization/60902
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 28 Apr 2014 13:38:19 +0000 (13:38 +0000)
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 28 Apr 2014 13:38:19 +0000 (13:38 +0000)
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@209860 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/tree-ssa-threadedge.c

index 61fd558d29de79ec0b6becba22c87b9a73278116..89930b0042c246fb044bdc0b45d72842fd7da515 100644 (file)
@@ -1,3 +1,11 @@
+2014-04-28  Jeff Law  <law@redhat.com>
+
+       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  <rguenther@suse.de>
 
        PR tree-optimization/60979
index 8a0103b1637fae9bced979223972426e0c08bc8e..7621348944f3e38a37599678b48f9bffd5dc5da6 100644 (file)
@@ -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