From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 24EDD385773F; Thu, 1 Jun 2023 17:45:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 24EDD385773F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1685641546; bh=iEd48jFMMmtvUs00obcOHoLVNatDaa5AcWB6Mbs5Ez4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=ubK0BLhVlS2RCgNBKkDkSaALqXVRvevYoHwxlyPrqLO5rmQvakkq3+vk7Uhz1o+ar 8E78dVmmKgCOmKlb3UvRCI8WHbgI/4Hih8KcMLC/SxnBozwsRR2MUO6pjXUa0t7yBE dLsSp6oJw1l6hB4oCYJGu/q9y62dljVUkPoWKy1Y= From: "segher at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/54089] [SH] Refactor shift patterns Date: Thu, 01 Jun 2023 17:45:45 +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: segher 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 #52 from Segher Boessenkool --- (In reply to Alexander Klepikov from comment #50) > But maybe there is a way to exclude particular insn from combine pass? (I > guess not). In general, it is best to let combine just work on everything. It will not replace instructions if the replacement is more expensive, and it will only ever create instruction sequences with the same semantics as what it started with. There is TARGET_LEGITIMATE_COMBINED_INSN though, which is a workaround for = if you really do not want the instruction combiner to create particular instruction patterns (but it does nothing to prevent other parts of the compiler from doing the same!)=