From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id BF7BC3858D1E; Fri, 19 Jan 2024 01:22:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BF7BC3858D1E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1705627365; bh=VmLsUJ9nG2yvKIo6+7MW6eAIWvJhuIuMhyxj0V7UhBs=; h=From:To:Subject:Date:From; b=xa1WqmcpKBoV9LZQgBxQ3/2g4s5aT50l5Z1EIji+E+DIrh7FoW4zte6ABnITA8vNH Dc6mEWeHlno2nUgn+xEHfO9nVYbFk42HYj/vNhSU3WS/nHsojWK2pyS/Ef/0fwMCLs 5axLKjk1XWssICRClHEmST1Mw/86uXGxYv37HzUk= From: "juzhe.zhong at rivai dot ai" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/113495] New: RISC-V: Time and memory awful consumption of SPEC2017 wrf benchmark Date: Fri, 19 Jan 2024 01:22:45 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: juzhe.zhong at rivai dot ai X-Bugzilla-Status: UNCONFIRMED 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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=3D113495 Bug ID: 113495 Summary: RISC-V: Time and memory awful consumption of SPEC2017 wrf benchmark Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: juzhe.zhong at rivai dot ai Target Milestone: --- riscv64-unknown-linux-gnu-gfortran -march=3Drv64gcv_zvl256b -O3 -S -ftime-r= eport real 63m18.771s user 60m19.036s sys 2m59.787s 60+ minutes. After investigation, the time report show 2 PASS are critical: loop invariant motion :2600.28 ( 72%) 1.68 ( 1%)2602.12 ( 6= 9%)=20 2617k ( 0%) loop invariant consume most of the time 72% time. The other is the VSETVL PASS: vsetvl: earliest_fuse_vsetvl_info : 438.26 ( 12%) 79.82 ( 47%) 518.08 ( 14%)221807M ( 75%) vsetvl: pre_global_vsetvl_info : 135.98 ( 4%) 31.71 ( 19%) 167.69 ( = 4%) 71950M ( 24%) The phase 2 and phase 3 of VSETVL PASS consume 16% times and 99% memory. I will look into VSETVL PASS issue but I am not able to take care of loop invariant issue.=