From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D7D643858438; Thu, 8 Jun 2023 13:22:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D7D643858438 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1686230548; bh=Wk0ApPv5TS+r0MG5fDTMWuf/7dsGZ3CIVv+4MvfW6VI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=o8ty6by3lN4KrAwOruqh7tzg1SZcn3hrJQ48WoIuUCGoD0FYV26BWa5+hM3MRpna3 UAkQ11Ku6bYe5a03imZj1ka4sWQ9izGvShWSylvZffFlvWtQrzqt2g3t4EO/KwNmZo 5YK2a+XPpaoZTpkud2nsNeEO7NzPwD7z8zIHnXi0= From: "olegendo at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/54089] [SH] Refactor shift patterns Date: Thu, 08 Jun 2023 13:22:27 +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: 4.8.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: olegendo at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: olegendo 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=3D54089 --- Comment #70 from Oleg Endo --- (In reply to Alexander Klepikov from comment #69) > Created attachment 55284 [details] > Collapsed libcall and additional loop move invariants patch Thanks for sharing the patch. I also don't have the GCC SH test environment setup at the moment, so it will take me some time to get up to speed on tha= t. There are some formatting nits in your patch, please check again: * don't add / remove empty lines for no reason * '{' goes on new line (follow surrounding code style) * in comments: two spaces after the period * closing ')' and ']' in the RTL should go on the same line (follow surroun= ding style) But more interestingly: * Do we really need to add that new source file sh_loop.cc with the wrapper classes? Can't we just instantiate the passes that are needed in-place when they are registered? * Can you add some tests to the SH specific tests?=