From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11988 invoked by alias); 21 Sep 2008 14:00:10 -0000 Received: (qmail 11589 invoked by uid 48); 21 Sep 2008 13:58:49 -0000 Date: Sun, 21 Sep 2008 14:00:00 -0000 Message-ID: <20080921135849.11588.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug tree-optimization/18046] Missed jump threading optimization In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "steven 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: 2008-09/txt/msg02434.txt.bz2 ------- Comment #12 from steven at gcc dot gnu dot org 2008-09-21 13:58 ------- tree PRE now *does* handle the partially redundant global variable load. This is the .final_cleanup dump: ;; Function bar (bar) bar () { int prephitmp.13; : prephitmp.13 = i; switch (prephitmp.13) , case 0: > : foo (); prephitmp.13 = i; : switch (prephitmp.13) , case 0: > : foo (); [tail call] : return; } But we still miss the jump threading opportunity. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18046