From: Tom de Vries Date: Thu, 14 Nov 2013 00:10:13 +0000 (+0000) Subject: Simplify code in gimple_equal_p X-Git-Tag: upstream/12.2.0~66641 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2f1aee044cb8edb759a20f6cace56fad368d35fa;p=platform%2Fupstream%2Fgcc.git Simplify code in gimple_equal_p 2013-11-14 Tom de Vries * tree-ssa-tail-merge.c (gimple_equal_p): Remove equal variable. From-SVN: r204764 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a8d9c5b..2524127 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2013-11-14 Tom de Vries + + * tree-ssa-tail-merge.c (gimple_equal_p): Remove equal variable. + 2013-11-13 Andrew MacLeod * gimple-walk.h: New File. Relocate prototypes from gimple.h. diff --git a/gcc/tree-ssa-tail-merge.c b/gcc/tree-ssa-tail-merge.c index 18c15d9..4068977 100644 --- a/gcc/tree-ssa-tail-merge.c +++ b/gcc/tree-ssa-tail-merge.c @@ -1086,7 +1086,7 @@ gimple_equal_p (same_succ same_succ, gimple s1, gimple s2) tree lhs1, lhs2; basic_block bb1 = gimple_bb (s1), bb2 = gimple_bb (s2); tree t1, t2; - bool equal, inv_cond; + bool inv_cond; enum tree_code code1, code2; if (gimple_code (s1) != gimple_code (s2)) @@ -1108,7 +1108,6 @@ gimple_equal_p (same_succ same_succ, gimple s1, gimple s2) if (gimple_call_builtin_p (s1, BUILT_IN_TM_COMMIT)) return false; - equal = true; for (i = 0; i < gimple_call_num_args (s1); ++i) { t1 = gimple_call_arg (s1, i); @@ -1117,11 +1116,8 @@ gimple_equal_p (same_succ same_succ, gimple s1, gimple s2) continue; if (gvn_uses_equal (t1, t2)) continue; - equal = false; - break; + return false; } - if (!equal) - return false; lhs1 = gimple_get_lhs (s1); lhs2 = gimple_get_lhs (s2);