From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25241 invoked by alias); 4 Apr 2013 12:08:01 -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 25181 invoked by uid 48); 4 Apr 2013 12:07:55 -0000 From: "glisse at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/52436] BIT_FIELD_REF > should be canonicalized for non-bitfield accesses Date: Thu, 04 Apr 2013 12:08:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: enhancement X-Bugzilla-Who: glisse at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: 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 X-SW-Source: 2013-04/txt/msg00410.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52436 --- Comment #7 from Marc Glisse 2013-04-04 12:07:53 UTC --- For the rest of the discussion, see the thread starting here: http://gcc.gnu.org/ml/gcc-patches/2013-04/msg00169.html In particular, the folding should be done in gimple only (most likely maybe_fold_reference) and test !is_gimple_reg().