From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3318 invoked by alias); 17 Nov 2014 04:46: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 3299 invoked by uid 48); 17 Nov 2014 04:45:57 -0000 From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/63906] [5 Regression] dse after reload miscompiles glibc with lra_remat turned on aarch64 Date: Mon, 17 Nov 2014 04:46: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: wrong-code X-Bugzilla-Severity: blocker X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 5.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: short_desc 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-11/txt/msg01458.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63906 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|[5 Regression] lra_remat |[5 Regression] dse after |mis-compiles glibc on |reload miscompiles glibc |aarch64 |with lra_remat turned on | |aarch64 --- Comment #3 from Andrew Pinski --- It looks like dse is removing more stores when lra_remat is enable: (insn 538 537 2663 41 (set (mem/f:DI (plus:DI (reg/f:DI 1 x1 [581]) (const_int 16 [0x10])) [1 runp_409->next+0 S8 A128]) (const_int 0 [0])) dl-deps.c:283 42 {*movdi_aarch64} (nil)) That is for: newp->next = NULL; tail->next = newp; DSE (after reload) thinks tail->next is the same as the store to newp->next with LRA_REMAT turned on. **scanning insn=538 mem: (plus:DI (reg/f:DI 1 x1 [581]) (const_int 16 [0x10])) after canon_rtx address: (plus:DI (reg/f:DI 1 x1 [581]) (const_int 16 [0x10])) after cselib_expand address: (plus:DI (reg/f:DI 31 sp) (const_int 16 [0x10])) .... **scanning insn=539 mem: (plus:DI (reg/v/f:DI 2 x2 [orig:88 runp ] [88]) (const_int 16 [0x10])) after canon_rtx address: (plus:DI (reg/v/f:DI 2 x2 [orig:88 runp ] [88]) (const_int 16 [0x10])) after cselib_expand address: (plus:DI (reg/f:DI 31 sp) (const_int 16 [0x10])) after canon_rtx address: (plus:DI (reg/f:DI 31 sp) (const_int 16 [0x10])) varying cselib base=2:4287 offset = 16 processing cselib store [16..24) **scanning insn=539 mem: (plus:DI (reg/v/f:DI 2 x2 [orig:88 runp ] [88]) (const_int 16 [0x10])) after canon_rtx address: (plus:DI (reg/v/f:DI 2 x2 [orig:88 runp ] [88]) (const_int 16 [0x10])) after cselib_expand address: (plus:DI (reg/f:DI 31 sp) (const_int 16 [0x10])) after canon_rtx address: (plus:DI (reg/f:DI 31 sp) (const_int 16 [0x10])) varying cselib base=2:4287 offset = 16 processing cselib store [16..24)