From patchwork Mon Oct 23 09:40:56 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Sandiford X-Patchwork-Id: 116656 Delivered-To: patch@linaro.org Received: by 10.80.245.45 with SMTP id t42csp2656305edm; Mon, 23 Oct 2017 02:41:15 -0700 (PDT) X-Received: by 10.98.8.74 with SMTP id c71mr12522887pfd.101.1508751675527; Mon, 23 Oct 2017 02:41:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1508751675; cv=none; d=google.com; s=arc-20160816; b=hntMHykpJjzJmpjJq6KSVl3m7wXu7PhwdfKTvSLEB3Ayxl0DBQvn1WXgf29FWDw4GS OXIW2V1Nntw7uQ+zblH9VvpKKc0CzVCqTgfPGZ2YfRk3d7KsQZDCIafVNZaimN09SofP 2iY/FF42bXwIowuYcCF33sT3aobBRD0PtXRcR1eOufIsm+ajOkPJUzBgNWkSpvmX1Qq4 Q5DRhFbcA1JH/8uJNP1KsXv1xIoVg+UwIsQPZqHRC8gk+A2fCLT/fXY/Qo8IYby+Y/Nm ON6q+zZJy9vAoQCINtF078Yj4LAotDOtsHrNJUp83pCsMSxrKb8qzx/paKWlnY1aFzK9 6Kzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:user-agent:message-id:date:subject:mail-followup-to:to :from:delivered-to:sender:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:mailing-list:dkim-signature :domainkey-signature:arc-authentication-results; bh=RCRKV5TAB/mL7aZ9gemmXpmbcUqkg9wnTi2NzmqcJvo=; b=GOOd1UVMYlqvyarBK9u2+cfcu1daurQzM88Xf0zjW51kDtUKxyukT6Ezu0Ax2wTEkK l1CT80jKZcKWclHpOvm4AhJljKIgDGncwNoHRhXjBTH3iLPSBYBwgAPJcnDmocrR02Eq pZvyJHBVOcBQUmDXBEa5H6mri8exhqr1xD5EArCPIn9ZmcKK9PbBj6EBm6wjr17nqEA3 XD3gOCMSq6/CJHFmcxex4kdaS6YJIntS1tBXIs7sGAPRktuI93Gb88AR4zFLhQdtNRFu eGFISqcqzTDidhPmuHYK76y70RDamfeQlCgO31lmJoRJxelL3y4wRwD41LEVqVC6A48H F6tg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=jdXE2Ekr; spf=pass (google.com: domain of gcc-patches-return-464710-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=gcc-patches-return-464710-patch=linaro.org@gcc.gnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id 100si3843684pld.634.2017.10.23.02.41.15 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 23 Oct 2017 02:41:15 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-return-464710-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=jdXE2Ekr; spf=pass (google.com: domain of gcc-patches-return-464710-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=gcc-patches-return-464710-patch=linaro.org@gcc.gnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:subject:date:message-id:mime-version:content-type; q=dns; s= default; b=a+hAxmejx3v4fZsP4o7DFY8eUWjTKR6YTKqoqUYoJMSDcte4JBi6Z Ikj381jW7/hMYlC7QA6K2QOR2aUKCtHovTbQxXocUKEq8smEbxBHJPSgjG5USSvr 9C7SYJCtxcc09qjy4Hce1IFqJCT7FKcbV5m07FnMmJbNUsWSd9IU5s= 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:from :to:subject:date:message-id:mime-version:content-type; s= default; bh=BFDVwbrQmiMuVLDH2oBN9O3qGrk=; b=jdXE2EkrR+eI0KvHDJXM X5puar7pmH/SraPAOR4fF7A0BsLVJDczdJpHWmUjKRzf5WOb9Bltw9tvIB45HEi2 V4GO/2LmesWXcMk4OiW0qrPz2sD8Cwqe5wKTADoq7vufcwhsjUf+jGET6J3WaUNt WNoYyrNEkVh9I8f+QKvbiaA= Received: (qmail 53807 invoked by alias); 23 Oct 2017 09:41:01 -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 53332 invoked by uid 89); 23 Oct 2017 09:41:01 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-11.6 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:1101 X-HELO: mail-wr0-f171.google.com Received: from mail-wr0-f171.google.com (HELO mail-wr0-f171.google.com) (209.85.128.171) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 23 Oct 2017 09:41:00 +0000 Received: by mail-wr0-f171.google.com with SMTP id y39so16663178wrd.4 for ; Mon, 23 Oct 2017 02:40:59 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:mail-followup-to:subject:date:message-id :user-agent:mime-version; bh=RCRKV5TAB/mL7aZ9gemmXpmbcUqkg9wnTi2NzmqcJvo=; b=J5Eb4bYwSuE/BinCIiZAcfhevDpIrEhrM2HIYupq5V8cq0iZt6//FT4qzdiltwIIPV LGox+98Ds/n9HWz/KP0vymIi420AhKrroIGTLhF8N2/VxiQQ3PR4a/fJQNhr5J4C/qiF WDKBZV+2Sgi7LLaUjjQYuWL5/uVQnBCERvF2ASFK4YtDiPSBXL2mHE809RK7z4PnBsC0 IFXF2QphMj8jeGs2+sKRLx5VR1WtBBhsKP0qWkxnbNjXMVyjNoeKcrejxbAIqsKMQO+/ ecD3GDjGoxVaWfpo2vwjIHMbXa1PgWlb4WM8Xbfcr4wlagzNbZC8hdvKIHSpksny79L/ UysA== X-Gm-Message-State: AMCzsaWfs7+YzJ17qcoN9seeG/jt0FCDgePExfNRrgtwUlm3O6U1Tssl /x3586dIkXpkn9Ia8hehz8yvO8zHyqo= X-Google-Smtp-Source: ABhQp+Q3mUdfjsE0DGJ1j9FaeLUYtpj1/Yn62Dow1QCjas11yT6xhM9Xu3JGHeeDgK6K1hPy77OIVA== X-Received: by 10.223.136.137 with SMTP id f9mr9919076wrf.130.1508751658109; Mon, 23 Oct 2017 02:40:58 -0700 (PDT) Received: from localhost ([2.26.27.199]) by smtp.gmail.com with ESMTPSA id o138sm5207201wmg.36.2017.10.23.02.40.57 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 23 Oct 2017 02:40:57 -0700 (PDT) From: Richard Sandiford To: gcc-patches@gcc.gnu.org Mail-Followup-To: gcc-patches@gcc.gnu.org, richard.sandiford@linaro.org Subject: Use SCALAR_TYPE_MODE in vect_create_epilog_for_reduction Date: Mon, 23 Oct 2017 10:40:56 +0100 Message-ID: <87bmkyyzfb.fsf@linaro.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) MIME-Version: 1.0 This follows on from similar changes a couple of months ago and is needed when general modes have variable size. Tested on aarch64-linux-gnu, x86_64-linux-gnu and powerpc64le-linux-gnu. Applied as obvious. Richard 2017-10-23 Richard Sandiford gcc/ * tree-vect-loop.c (vect_create_epilog_for_reduction): Use SCALAR_TYPE_MODE instead of TYPE_MODE. Index: gcc/tree-vect-loop.c =================================================================== --- gcc/tree-vect-loop.c 2017-10-22 21:04:50.136830154 +0100 +++ gcc/tree-vect-loop.c 2017-10-23 10:39:37.711243373 +0100 @@ -4487,7 +4487,7 @@ vect_create_epilog_for_reduction (vec