Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/810564/?format=api
{ "id": 810564, "url": "http://patchwork.ozlabs.org/api/patches/810564/?format=api", "web_url": "http://patchwork.ozlabs.org/project/gcc/patch/alpine.LSU.2.20.1709061427480.14191@zhemvz.fhfr.qr/", "project": { "id": 17, "url": "http://patchwork.ozlabs.org/api/projects/17/?format=api", "name": "GNU Compiler Collection", "link_name": "gcc", "list_id": "gcc-patches.gcc.gnu.org", "list_email": "gcc-patches@gcc.gnu.org", "web_url": null, "scm_url": null, "webscm_url": null, "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<alpine.LSU.2.20.1709061427480.14191@zhemvz.fhfr.qr>", "list_archive_url": null, "date": "2017-09-06T12:28:15", "name": "Fix PR82108", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "4590343b49eab68fdecabf771fca58f9b405821f", "submitter": { "id": 4338, "url": "http://patchwork.ozlabs.org/api/people/4338/?format=api", "name": "Richard Biener", "email": "rguenther@suse.de" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/gcc/patch/alpine.LSU.2.20.1709061427480.14191@zhemvz.fhfr.qr/mbox/", "series": [ { "id": 1788, "url": "http://patchwork.ozlabs.org/api/series/1788/?format=api", "web_url": "http://patchwork.ozlabs.org/project/gcc/list/?series=1788", "date": "2017-09-06T12:28:15", "name": "Fix PR82108", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/1788/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/810564/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/810564/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<gcc-patches-return-461596-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-461596-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=\"qs69nrNW\"; 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 3xnND163t1z9sNc\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed, 6 Sep 2017 22:28:32 +1000 (AEST)", "(qmail 67092 invoked by alias); 6 Sep 2017 12:28:23 -0000", "(qmail 66107 invoked by uid 89); 6 Sep 2017 12:28:23 -0000", "from mx2.suse.de (HELO mx1.suse.de) (195.135.220.15) by\n\tsourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP;\n\tWed, 06 Sep 2017 12:28:18 +0000", "from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254])\tby\n\tmx1.suse.de (Postfix) with ESMTP id 1BC56ACD3\tfor\n\t<gcc-patches@gcc.gnu.org>; Wed, 6 Sep 2017 12:28:16 +0000 (UTC)" ], "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:from:to:subject:message-id:mime-version:content-type; q=dns; s=\n\tdefault; b=KE162esIS3wcLobRld0ChccskzdJmYoepWotNv/qQpqItW6xTnNve\n\tAEeDc384pdlX7t4YsPKnjmh75ypZkzicx2f//Apt/vrpQ7GzCYRMaY0HA0ZKEJ0Y\n\tVhXhrEiKB10ncVNC2IZL/GLMMfz+/8/K1g5Clr1ZiqWEeqTFcyHMbM=", "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:from:to:subject:message-id:mime-version:content-type; s=\n\tdefault; bh=Vz744ScsraW2ty1upNTMH7gSYa0=; b=qs69nrNWFgBHYhJu6WIn\n\t0EwCkC3vOGWMQYmaWaPaFdmOP3MEnXhS6Ze3pyODufOQvUqJOVpkIGewXyGVEcCI\n\toKjaLVVpkOSyzkwpksRZ7zX3sMHIOBB5skWj0pDP8ruz7pzHXe39ZDM8wikIP8fT\n\twoAS0sgJdXdWCegwWF+0NOA=", "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=-11.1 required=5.0 tests=BAYES_00, GIT_PATCH_2,\n\tGIT_PATCH_3, KAM_ASCII_DIVIDERS, RP_MATCHES_RCVD,\n\tSPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:2230", "X-HELO": "mx1.suse.de", "Date": "Wed, 6 Sep 2017 14:28:15 +0200 (CEST)", "From": "Richard Biener <rguenther@suse.de>", "To": "gcc-patches@gcc.gnu.org", "Subject": "[PATCH] Fix PR82108", "Message-ID": "<alpine.LSU.2.20.1709061427480.14191@zhemvz.fhfr.qr>", "User-Agent": "Alpine 2.20 (LSU 67 2015-01-07)", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=US-ASCII" }, "content": "Bootstrapped and tested on x86_64-unknown-linux-gnu, applied to trunk \nsofar.\n\nRichard.\n\n2017-09-06 Richard Biener <rguenther@suse.de>\n\n\tPR tree-optimization/82108\n\t* tree-vect-stmts.c (vectorizable_load): Fix pointer adjustment\n\tfor gap in the non-permutation SLP case.\n\n\t* gcc.dg/vect/pr82108.c: New testcase.", "diff": "Index: gcc/tree-vect-stmts.c\n===================================================================\n--- gcc/tree-vect-stmts.c\t(revision 251642)\n+++ gcc/tree-vect-stmts.c\t(working copy)\n@@ -7203,7 +7203,6 @@ vectorizable_load (gimple *stmt, gimple_\n {\n first_stmt = GROUP_FIRST_ELEMENT (stmt_info);\n group_size = GROUP_SIZE (vinfo_for_stmt (first_stmt));\n- int group_gap = GROUP_GAP (vinfo_for_stmt (first_stmt));\n /* For SLP vectorization we directly vectorize a subchain\n without permutation. */\n if (slp && ! SLP_TREE_LOAD_PERMUTATION (slp_node).exists ())\n@@ -7246,7 +7245,8 @@ vectorizable_load (gimple *stmt, gimple_\n \t else\n \t {\n \t vec_num = SLP_TREE_NUMBER_OF_VEC_STMTS (slp_node);\n-\t group_gap_adj = group_gap;\n+\t group_gap_adj\n+\t\t= group_size - SLP_INSTANCE_GROUP_SIZE (slp_node_instance);\n \t }\n \t}\n else\nIndex: gcc/testsuite/gcc.dg/vect/pr82108.c\n===================================================================\n--- gcc/testsuite/gcc.dg/vect/pr82108.c\t(nonexistent)\n+++ gcc/testsuite/gcc.dg/vect/pr82108.c\t(working copy)\n@@ -0,0 +1,47 @@\n+/* { dg-do run } */\n+/* { dg-require-effective-target vect_float } */\n+\n+#include \"tree-vect.h\"\n+\n+void __attribute__((noinline,noclone))\n+downscale_2 (const float* src, int src_n, float* dst)\n+{\n+ int i;\n+\n+ for (i = 0; i < src_n; i += 2) {\n+ const float* a = src;\n+ const float* b = src + 4;\n+\n+ dst[0] = (a[0] + b[0]) / 2;\n+ dst[1] = (a[1] + b[1]) / 2;\n+ dst[2] = (a[2] + b[2]) / 2;\n+ dst[3] = (a[3] + b[3]) / 2;\n+\n+ src += 2 * 4;\n+ dst += 4;\n+ }\n+}\n+\n+int main ()\n+{\n+ const float in[4 * 4] = {\n+ 1, 2, 3, 4,\n+ 5, 6, 7, 8,\n+\n+ 1, 2, 3, 4,\n+ 5, 6, 7, 8\n+ };\n+ float out[2 * 4];\n+\n+ check_vect ();\n+\n+ downscale_2 (in, 4, out);\n+\n+ if (out[0] != 3 || out[1] != 4 || out[2] != 5 || out[3] != 6\n+ || out[4] != 3 || out[5] != 4 || out[6] != 5 || out[7] != 6)\n+ __builtin_abort ();\n+ \n+ return 0;\n+}\n+\n+/* { dg-final { scan-tree-dump-times \"vectorized 1 loops\" 1 \"vect\" } } */\n", "prefixes": [] }