From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9700 invoked by alias); 20 Apr 2007 14:34:07 -0000 Received: (qmail 9648 invoked by uid 48); 20 Apr 2007 14:33:58 -0000 Date: Fri, 20 Apr 2007 14:34:00 -0000 Message-ID: <20070420143358.9647.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug tree-optimization/29789] Missed invariant out of the loop with conditionals and shifts In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "rguenth 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: 2007-04/txt/msg01509.txt.bz2 ------- Comment #5 from rguenth at gcc dot gnu dot org 2007-04-20 15:33 ------- Note that this does fix the loop invariant motion only in the case of two ifs can be merged (because that re-instantiates the A & (1 << B) form). The following parts are still not resolved: void quantum_cnot(int control, int target, unsigned long *state, int size) { int i; for(i=0; i