Commit fda5c810 by Richard Biener Committed by Richard Biener

tree-ssa-threadbackward.c (profitable_jump_thread_path): Treat same SSA names related.

2016-08-09  Richard Biener  <rguenther@suse.de>

	* tree-ssa-threadbackward.c (profitable_jump_thread_path):
        Treat same SSA names related.

From-SVN: r239276
parent 9e207d6f
2016-08-09 Richard Biener <rguenther@suse.de>
* tree-ssa-threadbackward.c (profitable_jump_thread_path):
Treat same SSA names related.
2016-08-09 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/72824
......
......@@ -207,8 +207,9 @@ profitable_jump_thread_path (vec<basic_block, va_gc> *&path,
/* Note that if both NAME and DST are anonymous
SSA_NAMEs, then we do not have enough information
to consider them associated. */
if ((SSA_NAME_VAR (dst) != SSA_NAME_VAR (name)
|| !SSA_NAME_VAR (dst))
if (dst != name
&& (SSA_NAME_VAR (dst) != SSA_NAME_VAR (name)
|| !SSA_NAME_VAR (dst))
&& !virtual_operand_p (dst))
++n_insns;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment