From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10107 invoked by alias); 7 Jan 2014 15:07:02 -0000 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 Received: (qmail 10059 invoked by uid 55); 7 Jan 2014 15:06:57 -0000 From: "hubicka at ucw dot cz" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/59660] We fail to optimize common boolean checks pre-inlining Date: Tue, 07 Jan 2014 15:07:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: hubicka at ucw dot cz X-Bugzilla-Status: NEW 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: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-01/txt/msg00665.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59660 --- Comment #4 from Jan Hubicka --- > Not all testcases can be handled at gimplification time IIRC. Which > means "testcases welcome" first, so we can look at them individually. The GCC one I saw was equivalent of: #include bool m_is_less_than_n (int n, int m) { return (n==m || m_is_less_than_n (n-1,m)); }