From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24583 invoked by alias); 2 Mar 2010 22:02:44 -0000 Received: (qmail 20844 invoked by uid 48); 2 Mar 2010 22:02:23 -0000 Date: Tue, 02 Mar 2010 22:02:00 -0000 Message-ID: <20100302220223.20841.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug rtl-optimization/37471] Move invariant pulls too many cmps out of a loop In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "pinskia at gcc dot gnu dot org" 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: 2010-03/txt/msg00235.txt.bz2 ------- Comment #5 from pinskia at gcc dot gnu dot org 2010-03-02 22:02 ------- It is pretty obvious from doing a cross build. We get a couple sets of: lwz 0,112(1) rlwinm 0,0,4,0xffffffff mtcrf 1,0 rlwinm 0,0,28,0xffffffff beq 7,.L6 Which loads r0 from the stack and then puts it into a conditional register and the branches. Note the rlwinm's are there to shift the registers around to put it into the correct location for the mtcrf. -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|WAITING |UNCONFIRMED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37471