From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4653 invoked by alias); 16 Oct 2012 10:53:14 -0000 Received: (qmail 4555 invoked by uid 48); 16 Oct 2012 10:52:49 -0000 From: "amylaar at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/54089] [SH] Refactor shift patterns Date: Tue, 16 Oct 2012 10:53:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: amylaar at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: olegendo at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: CC Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2012-10/txt/msg01461.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54089 Jorn Wolfgang Rennecke changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |amylaar at gcc dot gnu.org --- Comment #22 from Jorn Wolfgang Rennecke 2012-10-16 10:52:46 UTC --- (In reply to comment #0) > The code related to shift patterns in sh.c / sh.md maybe could use some > improvements here and there. In some places clobbers and scratch regs could be > avoided. > There is also a large part that deals with minimizing and-shift/shift-and > sequences, but there are no test cases to verify that those actually work. > It would also be interesting to see, whether some of the and-shift/shift-and > combine code could be reduced due to improvements in the middle-end. Be careful with removing 'useless' clobbers, as they might be needed to facilitate instruction combinations into patterns that have these clobbers.