From patchwork Mon Aug 27 14:17:30 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Biener X-Patchwork-Id: 962529 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-484505-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=suse.de Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="vNPyymqD"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41zYrD0ggRz9s1c for ; Tue, 28 Aug 2018 00:17:47 +1000 (AEST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:subject:message-id:mime-version:content-type; q=dns; s= default; b=Zk5SEnPf66qwjXexL/Dsfw+3rqbau7zQUpyJJxhLNcCEtrM4a6AGt /u6xT8/a4wnYchM720xpGJePjh5/tIfo5FUVVL0ntYxrNZULCUJ1DSvzzE3YTeet bxbXz14W4MLldTHJ3AgJBMjxx4z1jeFcmUzEsfSDuokwU8G1elVOSY= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:subject:message-id:mime-version:content-type; s= default; bh=9yMTMLj0S9R/pQ+Y7Abm/qWwBRg=; b=vNPyymqDI/3+Afn1JzOS obgsRDxLjr4xa7wcqm4vHiqI91+n98F5c11ZAUR3AWrLHnpas8BXOIQBKZcq6Xas B9J0P5PvqfnKmdcwPk+efneErDG2STODq+iBMidpBYYXDhaKYCPiahZgSzltIoz3 gMH8OxgCaygVTQSafoRUmek= Received: (qmail 79069 invoked by alias); 27 Aug 2018 14:17:39 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 78684 invoked by uid 89); 27 Aug 2018 14:17:38 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-10.6 required=5.0 tests=BAYES_00, GIT_PATCH_2, GIT_PATCH_3, KAM_ASCII_DIVIDERS, KAM_NUMSUBJECT, SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:1236 X-HELO: mx1.suse.de Received: from mx2.suse.de (HELO mx1.suse.de) (195.135.220.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 27 Aug 2018 14:17:37 +0000 Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 191DFAED8 for ; Mon, 27 Aug 2018 14:17:31 +0000 (UTC) Date: Mon, 27 Aug 2018 16:17:30 +0200 (CEST) From: Richard Biener To: gcc-patches@gcc.gnu.org Subject: [PATCH] Fix PR86927 Message-ID: User-Agent: Alpine 2.20 (LSU 67 2015-01-07) MIME-Version: 1.0 Bootstrapped and tested on x86_64-unknown-linux-gnu, applied to trunk. Richard. 2018-08-27 Richard Biener PR tree-optimization/86927 * tree-vect-loop.c (vect_create_epilog_for_reduction): Properly use const cond reduction code. * gcc.dg/vect/pr86927.c: New testcase. Index: gcc/tree-vect-loop.c =================================================================== --- gcc/tree-vect-loop.c (revision 263875) +++ gcc/tree-vect-loop.c (working copy) @@ -5197,6 +5197,9 @@ vect_create_epilog_for_reduction (vec