From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 188ED388456B; Mon, 5 Dec 2022 05:28:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 188ED388456B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1670218094; bh=DnRHkQWlET5bKgGoucYK4IGJ6OOAbyuRpHJUj2H/ZHU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=VWe6bQAVlcU3Zq18AgPHQeUIpDzXqvZJ40rn2AZmiysd8WRmpT4LSrjujUJZ3U/b8 D+XkJnA6UBTOKo7CyHobmZtumeuM41D+hUP/RVmxEtlDh8lAvX6cPelKoZEbCjMOF9 rJK78c/OgQtowLeaWvRErkK2nceP5AbQS581XUVQ= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/107412] Miss to fold LEN_{LOAD,STORE} when the specified length equal to vector length Date: Mon, 05 Dec 2022 05:28:11 +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-Version: 13.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: linkw at gcc dot gnu.org X-Bugzilla-Target-Milestone: 13.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D107412 --- Comment #6 from CVS Commits --- The master branch has been updated by Kewen Lin : https://gcc.gnu.org/g:380d62c14c99d8df13b7a86660e7ee67d01ad827 commit r13-4488-g380d62c14c99d8df13b7a86660e7ee67d01ad827 Author: Kewen Lin Date: Sun Dec 4 23:27:08 2022 -0600 gimple-fold: Refine gimple_fold_partial_load_store_mem_ref [PR107412] Following Richard's review comments, this patch is to use untruncated type for the length used for IFN_LEN_{LOAD,STORE} instead of "unsigned int" for better robustness. It also avoid to use to_constant and tree arithmetic for subtraction. Co-authored-by: Richard Sandiford PR tree-optimization/107412 gcc/ChangeLog: * gimple-fold.cc (gimple_fold_partial_load_store_mem_ref): Use untruncated type for the length, and avoid to_constant and tree arithmetic for subtraction.=