From fda5c810e17e600a10de691a9b8aa00bdd8be277 Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Tue, 9 Aug 2016 08:09:21 +0000 Subject: [PATCH] tree-ssa-threadbackward.c (profitable_jump_thread_path): Treat same SSA names related. 2016-08-09 Richard Biener * tree-ssa-threadbackward.c (profitable_jump_thread_path): Treat same SSA names related. From-SVN: r239276 --- gcc/ChangeLog | 5 +++++ gcc/tree-ssa-threadbackward.c | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e71b548253e..9cb04ca01b4 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2016-08-09 Richard Biener + + * tree-ssa-threadbackward.c (profitable_jump_thread_path): + Treat same SSA names related. + 2016-08-09 Jakub Jelinek PR tree-optimization/72824 diff --git a/gcc/tree-ssa-threadbackward.c b/gcc/tree-ssa-threadbackward.c index 234ce50d10c..e05669f8147 100644 --- a/gcc/tree-ssa-threadbackward.c +++ b/gcc/tree-ssa-threadbackward.c @@ -207,8 +207,9 @@ profitable_jump_thread_path (vec *&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; } -- 2.30.2