From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 828A5389802B; Mon, 16 Aug 2021 07:17:52 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 828A5389802B From: "crazylht at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/83827] vector load/store with struct in registers Date: Mon, 16 Aug 2021 07:17:52 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: enhancement X-Bugzilla-Who: crazylht at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Aug 2021 07:17:52 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D83827 --- Comment #2 from Hongtao.liu --- For f, pass_combine failed=20 Trying 20, 21 -> 22: 20: clobber r83:TI 21: r83:TI#0=3Dr88:DI REG_DEAD r88:DI 22: r83:TI#8=3Dr89:DI REG_DEAD r89:DI Can't combine i2 into i3 (insn 20 6 21 2 (clobber (reg/v:TI 83 [ x ])) "test.cpp":3:11 -1 (nil)) (insn 21 20 22 2 (set (subreg:DI (reg/v:TI 83 [ x ]) 0) (reg:DI 88 [ x ])) "test.cpp":3:11 74 {*movdi_internal} (expr_list:REG_DEAD (reg:DI 88 [ x ]) (nil))) (insn 22 21 8 2 (set (subreg:DI (reg/v:TI 83 [ x ]) 8) (reg:DI 89 [+8 ])) "test.cpp":3:11 74 {*movdi_internal} (expr_list:REG_DEAD (reg:DI 89 [+8 ]) And it should be optimized to (set (reg:TI 83) (subreg:TI (vec_concat:V2DI (reg:DI 88) (reg:DI 89)) 0))??=