From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3490 invoked by alias); 17 Oct 2014 07:33:47 -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 3438 invoked by uid 48); 17 Oct 2014 07:33:43 -0000 From: "ubizjak at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/58945] Improve atomic_compare_and_swap*_doubleword pattern Date: Fri, 17 Oct 2014 07:33:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: ubizjak at gmail dot com X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: steven at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-10/txt/msg01337.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D58945 --- Comment #6 from Uro=C5=A1 Bizjak --- Hm, starting from: (unspec_volatile:TI [ (mem/v:TI (symbol_ref:DI ("i") ) [-1 S16 A128]) (reg:TI 85) (reg:DI 97) (reg:DI 98 [+8 ]) (const_int 5 [0x5]) fwprop creates: (unspec_volatile:TI [ (mem/v:TI (symbol_ref:DI ("i") ) [-1 S16 A128]) (reg:TI 86) (reg:DI 97) (reg:DI 97) (const_int 5 [0x5]) Register allocators can't allocate reg 97 to "b" and "c" constraint: (unspec_volatile: [(match_operand: 1 "memory_operand" "+m") (match_operand: 2 "register_operand" "0") (match_operand:DWIH 3 "register_operand" "b") (match_operand:DWIH 4 "register_operand" "c") (match_operand:SI 5 "const_int_operand")] UNSPECV_CMPXCHG)) So, a fwprop bug? >>From gcc-bugs-return-464317-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 17 07:54:55 2014 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 15934 invoked by alias); 17 Oct 2014 07:54:54 -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 Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 15903 invoked by uid 48); 17 Oct 2014 07:54:50 -0000 From: "vries at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/61605] Potential optimization: Keep unclobbered argument registers live across function calls Date: Fri, 17 Oct 2014 07:54:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: missed-optimization, patch X-Bugzilla-Severity: normal X-Bugzilla-Who: vries at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: vries at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-10/txt/msg01338.txt.bz2 Content-length: 511 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61605 vries at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |missed-optimization Status|ASSIGNED |RESOLVED Resolution|--- |FIXED --- Comment #11 from vries at gcc dot gnu.org --- Patches committed, test-case updated. Resolving as fixed.