[{"id":1771958,"web_url":"http://patchwork.ozlabs.org/comment/1771958/","msgid":"<BD4E6AC4-C040-4155-8463-6389B1ADADEC@gmail.com>","list_archive_url":null,"date":"2017-09-20T15:02:27","subject":"Re: Add copy_rtx call to RTL loop unroller","submitter":{"id":1765,"url":"http://patchwork.ozlabs.org/api/people/1765/","name":"Richard Biener","email":"richard.guenther@gmail.com"},"content":"On September 20, 2017 2:27:49 PM GMT+02:00, Richard Sandiford <richard.sandiford@linaro.org> wrote:\n>This is needed if the step is an unshared constant, like many\n>(const ...)s are.  Without this patch, libgfortran would fail\n>to build for SVE.\n>\n>Tested on aarch64-linux-gnu, x86_64-linux-gnu and\n>powerpc64le-linus-gnu.\n>OK to install?\n\nOK. \n\nRichard. \n\n>Richard\n>\n>\n>2017-09-20  Richard Sandiford  <richard.sandiford@linaro.org>\n>\t    Alan Hayward  <alan.hayward@arm.com>\n>\t    David Sherwood  <david.sherwood@arm.com>\n>\n>gcc/\n>\t* loop-unroll.c (split_iv): Call copy_rtx on the step.\n>\n>Index: gcc/loop-unroll.c\n>===================================================================\n>--- gcc/loop-unroll.c\t2017-08-30 12:13:52.715828832 +0100\n>+++ gcc/loop-unroll.c\t2017-09-20 13:26:14.451718893 +0100\n>@@ -1731,7 +1731,8 @@ split_iv (struct iv_to_split *ivts, rtx_\n>   else\n>     {\n>       incr = simplify_gen_binary (MULT, mode,\n>-\t\t\t\t  ivts->step, gen_int_mode (delta, mode));\n>+\t\t\t\t  copy_rtx (ivts->step),\n>+\t\t\t\t  gen_int_mode (delta, mode));\n>       expr = simplify_gen_binary (PLUS, GET_MODE (ivts->base_var),\n> \t\t\t\t  ivts->base_var, incr);\n>     }","headers":{"Return-Path":"<gcc-patches-return-462607-incoming=patchwork.ozlabs.org@gcc.gnu.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":["patchwork-incoming@bilbo.ozlabs.org","mailing list gcc-patches@gcc.gnu.org"],"Authentication-Results":["ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org\n\t(client-ip=209.132.180.131; helo=sourceware.org;\n\tenvelope-from=gcc-patches-return-462607-incoming=patchwork.ozlabs.org@gcc.gnu.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (1024-bit key;\n\tunprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org\n\theader.b=\"pGGvuqzq\"; dkim-atps=neutral","sourceware.org; auth=none"],"Received":["from sourceware.org (server1.sourceware.org [209.132.180.131])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xy2zs37PJz9sNr\n\tfor <incoming@patchwork.ozlabs.org>;\n\tThu, 21 Sep 2017 01:03:04 +1000 (AEST)","(qmail 97995 invoked by alias); 20 Sep 2017 15:02:36 -0000","(qmail 97904 invoked by uid 89); 20 Sep 2017 15:02:35 -0000","from mail-wm0-f49.google.com (HELO mail-wm0-f49.google.com)\n\t(74.125.82.49) by sourceware.org\n\t(qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP;\n\tWed, 20 Sep 2017 15:02:33 +0000","by mail-wm0-f49.google.com with SMTP id v142so8028343wmv.5 for\n\t<gcc-patches@gcc.gnu.org>; Wed, 20 Sep 2017 08:02:33 -0700 (PDT)","from android-97b5c0ce9bfced28.fritz.box\n\t(p5494E583.dip0.t-ipconnect.de. [84.148.229.131]) by\n\tsmtp.gmail.com with ESMTPSA id\n\ta39sm2095186wrc.48.2017.09.20.08.02.30 (version=TLS1_2\n\tcipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tWed, 20 Sep 2017 08:02:30 -0700 (PDT)"],"DomainKey-Signature":"a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id\n\t:list-unsubscribe:list-archive:list-post:list-help:sender:date\n\t:in-reply-to:references:mime-version:content-type\n\t:content-transfer-encoding:subject:to:from:message-id; q=dns; s=\n\tdefault; b=bJdp2lB5h/pBXoffzu7d6PuoIdLMWc7colI7FDX3OO8munY/xXtoT\n\tqAER3GV2ClKjJomtLMaQu9QJi2/swd0qxjLZZBxXSRW7LuzgK6ungO1rC0oA3lte\n\tHaUR1g5Te3h5Az9gJn05zG0LYiP7FrH4wrPiEe+gv7LGpLrljsi7WY=","DKIM-Signature":"v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id\n\t:list-unsubscribe:list-archive:list-post:list-help:sender:date\n\t:in-reply-to:references:mime-version:content-type\n\t:content-transfer-encoding:subject:to:from:message-id; s=\n\tdefault; bh=FHozvJkhHZmVvDTZ0hByCtxTUtY=; b=pGGvuqzqZGrxKpfYjoef\n\tZY/wPM/ynNTp6loqqeldG3GGPE5tI9PdiHF3c1hw2EuzzzbJ4DRZO2tTF8x1diOg\n\tK+8hWahWevdHqmC5TznyMG2S9rVdSwfdR4nIkCABxHZaeutPlYUB5ByhNzKhb8wT\n\tZxYDOe9aMLJxLj6aYyoEdl0=","Mailing-List":"contact gcc-patches-help@gcc.gnu.org; run by ezmlm","Precedence":"bulk","List-Id":"<gcc-patches.gcc.gnu.org>","List-Unsubscribe":"<mailto:gcc-patches-unsubscribe-incoming=patchwork.ozlabs.org@gcc.gnu.org>","List-Archive":"<http://gcc.gnu.org/ml/gcc-patches/>","List-Post":"<mailto:gcc-patches@gcc.gnu.org>","List-Help":"<mailto:gcc-patches-help@gcc.gnu.org>","Sender":"gcc-patches-owner@gcc.gnu.org","X-Virus-Found":"No","X-Spam-SWARE-Status":"No, score=-10.8 required=5.0 tests=AWL, BAYES_00,\n\tFREEMAIL_FROM, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE,\n\tRCVD_IN_SORBS_SPAM,\n\tSPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:1144","X-HELO":"mail-wm0-f49.google.com","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net;\n\ts=20161025;\n\th=x-gm-message-state:date:user-agent:in-reply-to:references\n\t:mime-version:content-transfer-encoding:subject:to:from:message-id;\n\tbh=n0MC7E+YfUWkLUokejZaDO8JaRDuD57WMY9pVCU22fc=;\n\tb=WVEAqUyZkO7/D3o2nccvMdtXXtYVLG1SlEm7O/0GWltdu/ZEwit6qV9oXXgGF3rU5H\n\tjykSdIeZpYXMNK99R63I3VtkaysByqiaFHuomP/pldyaK+80GgjL3JLzG8s/fEOtxGZ7\n\tIxM7O0U4Z1YLKCVhqjUUW7EmEaEVkn9uxGOA8BPwoqT28tifwzB3KgVgtHJw0x585ljo\n\tqsTwXE9qM1C3zQFHngtpyUnP6gtmfu8RSGsJI9bAn90IO5dSfB0ABeG/zJlAXRTOWmn7\n\tIsaTBf90ZQBuom8nvGvgGEm1vJZxjVCGrgRR44PagY8pdoQ1TWhO/DRInTPaRoHqvX42\n\tb8gA==","X-Gm-Message-State":"AHPjjUhVYPMAsuZrq9vzCVJTNDt/4iAtRSHdksC++MaH42282ZwKizOY\tth4rUkYStOCAJfKuK/mIkUPc7d9I","X-Google-Smtp-Source":"AOwi7QBsQDoIZtFIJr6KlsvnSH60vVNtxeWZmCVYUGtnbDckmrBCjCxAf1IPoidEY6sHfyZLjIoUVQ==","X-Received":"by 10.28.156.18 with SMTP id f18mr4133275wme.63.1505919751425;\n\tWed, 20 Sep 2017 08:02:31 -0700 (PDT)","Date":"Wed, 20 Sep 2017 17:02:27 +0200","User-Agent":"K-9 Mail for Android","In-Reply-To":"<87377h1rne.fsf@linaro.org>","References":"<87377h1rne.fsf@linaro.org>","MIME-Version":"1.0","Content-Type":"text/plain; charset=utf-8","Content-Transfer-Encoding":"quoted-printable","Subject":"Re: Add copy_rtx call to RTL loop unroller","To":"gcc-patches@gcc.gnu.org, Richard Sandiford <richard.sandiford@linaro.org>","From":"Richard Biener <richard.guenther@gmail.com>","Message-ID":"<BD4E6AC4-C040-4155-8463-6389B1ADADEC@gmail.com>","X-IsSubscribed":"yes"}}]