From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id DE2FC3856948; Sat, 7 Oct 2023 22:55:31 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DE2FC3856948 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1696719331; bh=XcYzugMgBZrWMBRsP6LJ5A7rhNByZB9c7E+3CtoJIXw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=sJSLfKPDmuiqOL3p8DVpAW9pT5I2c3VX68UJ4D07nJtZPsHlYSVNKnJGoGDR7fL1D SeR5YHFA3cep3NnmGXDQcAhxzXVm6G05KifDPxxvWk5dNp7lVnbK5+wi1ChqmesSpP QyfBulPk+vl0MGEnkqykRes7nWbE2gYGRTLtzZy0= From: "juzhe.zhong at rivai dot ai" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/111720] RISC-V: Ugly codegen in RVV Date: Sat, 07 Oct 2023 22:55:31 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: juzhe.zhong at rivai dot ai 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D111720 --- Comment #11 from JuzheZhong --- (In reply to Andrew Pinski from comment #10) > The issues is GCC does prop the load/store for arr into __riscv_vle8_v_u8= m1 > really. Ok. Do you know why GCC prop load/store for arr into __riscv_vle8_v_u8m1? Just because the __riscv_vle8_v_u8m1 pattern is complex? I don't think we can simplify __riscv_vle8_v_u8m1 pattern since we tried to fuse all feature into a single pattern (A pattern includes multiple features bec= ome complex) to reduce the building of insn-emit.cc and insn-opinit.cc=