From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31065 invoked by alias); 13 Jan 2005 21:54:29 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 31047 invoked by uid 48); 13 Jan 2005 21:54:25 -0000 Date: Thu, 13 Jan 2005 21:54:00 -0000 Message-ID: <20050113215425.31046.qmail@sourceware.org> From: "pinskia at gcc dot gnu dot org" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20050113213834.19431.pinskia@gcc.gnu.org> References: <20050113213834.19431.pinskia@gcc.gnu.org> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug tree-optimization/19431] missed optimization with ifs and deferencing X-Bugzilla-Reason: CC X-SW-Source: 2005-01/txt/msg01734.txt.bz2 List-Id: ------- Additional Comments From pinskia at gcc dot gnu dot org 2005-01-13 21:54 ------- This comes from "std::_Deque_base<_Tp, _Alloc>::_M_initialize_map" in libstdc++. Here is the last SSA tree dump: f (k, i1, j1) { int * f1; int D.1116; : if (k_2 != 0) goto ; else goto ; :; # f1_1 = PHI <&i1(0), &j1(1)>; :; # VUSE ; # VUSE ; D.1116_3 = *f1_1; return D.1116_3; } And the .final_cleanup one: f (k, i1, j1) { int * f1; : if (k != 0) goto ; else goto ; :; f1 = &i1; goto (); :; f1 = &j1; :; return *f1; } -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19431