From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4075 invoked by alias); 13 Apr 2012 13:04:03 -0000 Received: (qmail 4066 invoked by uid 22791); 13 Apr 2012 13:04:02 -0000 X-SWARE-Spam-Status: No, hits=-4.3 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,KHOP_THREADED X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 13 Apr 2012 13:03:48 +0000 From: "vincenzo.innocente at cern dot ch" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/52969] [4.7/4.8 Regression] ICE in in get_expr_operands, at tree-ssa-operands.c:1035 with -ftree-loop-if-convert-stores Date: Fri, 13 Apr 2012 13:04:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Keywords: X-Bugzilla-Severity: major X-Bugzilla-Who: vincenzo.innocente at cern dot ch X-Bugzilla-Status: RESOLVED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.7.1 X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2012-04/txt/msg01026.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52969 --- Comment #11 from vincenzo Innocente 2012-04-13 13:03:48 UTC --- I do not have a clear case in hand with evidence of "double" compare I will have a closer look to "real life" code. btw I just noticed that your test case does not vectorize even if I rewrite as for (; a ; ++j) xsum[j] = (cluster[j] > 0.) ? 0. : cluster[j]; any idea why? c++ -O3 -c ifconv.cc -ftree-loop-if-convert-stores -ftree-vectorizer-verbose=9 Analyzing loop at ifconv.cc:10 10: ===== analyze_loop_nest ===== 10: === vect_analyze_loop_form === 10: not vectorized: control flow in loop. 10: bad loop form. ifconv.cc:3: note: vectorized 0 loops in function. pb-d-128-141-131-26:bugs48 innocent$ c++ -O3 -c ifconv.cc -ftree-loop-if-convert-stores -ftree-vectorizer-verbose=9 Analyzing loop at ifconv.cc:10 10: ===== analyze_loop_nest ===== 10: === vect_analyze_loop_form === 10: not vectorized: control flow in loop. 10: bad loop form. ifconv.cc:3: note: vectorized 0 loops in function. pb-d-128-141-131-26:bugs48 innocent$ c++ -Ofast -c ifconv.cc -ftree-loop-if-convert-stores -ftree-vectorizer-verbose=9 Analyzing loop at ifconv.cc:10 10: ===== analyze_loop_nest ===== 10: === vect_analyze_loop_form === 10: not vectorized: multiple exits. 10: bad loop form. ifconv.cc:3: note: vectorized 0 loops in function. pb-d-128-141-131-26:bugs48 innocent$ c++ -Ofast -c ifconv.cc -ftree-vectorizer-verbose=9 Analyzing loop at ifconv.cc:10 10: ===== analyze_loop_nest ===== 10: === vect_analyze_loop_form === 10: not vectorized: multiple exits. 10: bad loop form. ifconv.cc:3: note: vectorized 0 loops in function.