From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17034 invoked by alias); 20 Apr 2010 12:36:09 -0000 Received: (qmail 16945 invoked by uid 48); 20 Apr 2010 12:35:47 -0000 Date: Tue, 20 Apr 2010 12:36:00 -0000 Subject: [Bug other/43816] New: missed inline optimization for boost::shared_ptr::operator = X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "pluto at agmk dot net" 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-04/txt/msg02016.txt.bz2 please consider .einline2 and .optimized trees for the boost::thread::start_thread() function from attached testcase. the 4.3 optimize boost::shared_ptr<>::operator= pretty nice. the 4.5 avoid operator= inlining. moreover, the 4.5 code is bigger (152bytes vs 106bytes) and contains more atomic operations due to temporary shared_ptr swapping and assignments. the testcase is big and horrible but the 'pretty 4.3 inlining' dissapears during testcase reducing :/ -- Summary: missed inline optimization for boost::shared_ptr::operator = Product: gcc Version: 4.5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: other AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: pluto at agmk dot net GCC build triplet: x86_64-gnu-linux GCC host triplet: x86_64-gnu-linux GCC target triplet: x86_64-gnu-linux http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43816