From 08bbb1f8bd4ec6395c1d9a05b6a009a1d7b83884 Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Fri, 3 Jun 2016 17:12:39 -0600 Subject: [PATCH] re PR tree-optimization/71316 (test case gcc.dg/tree-ssa/ssa-dom-thread-4.c fails starting with r236831) PR tree-optimization/71316 * gcc.dg/tree-ssa/ssa-dom-thread-4.c: Update expected output. From-SVN: r237083 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.dg/tree-ssa/ssa-dom-thread-4.c | 9 ++++----- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 1a80a9ce6be..cd45cda0300 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2016-06-03 Jeff Law + + PR tree-optimization/71316 + * gcc.dg/tree-ssa/ssa-dom-thread-4.c: Update expected output. + 2016-06-03 Jakub Jelinek * gcc.dg/vect/vect-live-1.c: Remove dg-options. Add diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-dom-thread-4.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-dom-thread-4.c index 4258fb5acba..2dd91771003 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-dom-thread-4.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-dom-thread-4.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -fdump-tree-dom2-details -std=gnu89" } */ +/* { dg-options "-O2 -fdump-tree-vrp1-details -fdump-tree-dom2-details -std=gnu89" } */ struct bitmap_head_def; typedef struct bitmap_head_def *bitmap; typedef const struct bitmap_head_def *const_bitmap; @@ -76,8 +76,7 @@ bitmap_ior_and_compl (bitmap dst, const_bitmap a, const_bitmap b, skipping the known-true "b_elt && kill_elt" in the second condition. - However, 3 of those 4 opportunities are ultimately eliminated by - DOM optimizing away conditionals. So there's only one jump threading - opportunity left. */ -/* { dg-final { scan-tree-dump-times "Threaded" 1 "dom2" { target logical_op_short_circuit } } } */ + The !b_elt cases are picked up by VRP1 as jump threads. The others + are optimized by DOM. */ +/* { dg-final { scan-tree-dump-times "Threaded" 2 "vrp1" { target logical_op_short_circuit } } } */ -- 2.30.2