From 85222504cc447607d81183e77a6c450351c20ff7 Mon Sep 17 00:00:00 2001 From: Eric Botcazou Date: Thu, 28 Feb 2019 23:03:01 +0000 Subject: re PR tree-optimization/89536 (wrong code at -Os and above on x86_64-linux-gnu) PR tree-optimization/89536 * tree-ssa-dom.c (edge_info::derive_equivalences) : Test only whether bit #0 of the value is 0 instead of the entire value. From-SVN: r269289 --- gcc/tree-ssa-dom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/tree-ssa-dom.c') diff --git a/gcc/tree-ssa-dom.c b/gcc/tree-ssa-dom.c index 4f4b7db..aa4e24b 100644 --- a/gcc/tree-ssa-dom.c +++ b/gcc/tree-ssa-dom.c @@ -348,7 +348,7 @@ edge_info::derive_equivalences (tree name, tree value, int recursion_limit) && TREE_CODE (rhs) == SSA_NAME && ssa_name_has_boolean_range (rhs)) { - if (integer_zerop (value)) + if ((TREE_INT_CST_LOW (value) & 1) == 0) res = build_one_cst (TREE_TYPE (rhs)); else res = build_zero_cst (TREE_TYPE (rhs)); -- cgit v1.1