public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "belagod at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug target/63679] [5.0 Regression][AArch64] Failure to constant fold. Date: Tue, 04 Nov 2014 16:32:00 -0000 [thread overview] Message-ID: <bug-63679-4-dlGkzeppAh@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-63679-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63679 --- Comment #3 from Tejas Belagod <belagod at gcc dot gnu.org> --- When I try 5.0 with -fno-tree-vectorize, I get: ;; basic block 2, loop depth 0 ;; pred: ENTRY # .MEM_4 = VDEF <.MEM_3(D)> aD.2496 = *.LC0D.2503; # VUSE <.MEM_4> _10 = aD.2496[0]; # VUSE <.MEM_4> _22 = aD.2496[1]; sum_23 = _10 + _22; # VUSE <.MEM_4> _29 = aD.2496[2]; sum_30 = sum_23 + _29; # VUSE <.MEM_4> _36 = aD.2496[3]; sum_37 = sum_30 + _36; # VUSE <.MEM_4> _43 = aD.2496[4]; sum_44 = sum_37 + _43; # VUSE <.MEM_4> _50 = aD.2496[5]; sum_51 = sum_44 + _50; # VUSE <.MEM_4> _57 = aD.2496[6]; sum_58 = sum_51 + _57; # VUSE <.MEM_4> _6 = aD.2496[7]; sum_7 = _6 + sum_58; # .MEM_9 = VDEF <.MEM_4> aD.2496 ={v} {CLOBBER}; # VUSE <.MEM_9> return sum_7; ;; succ: EXIT This: # .MEM_4 = VDEF <.MEM_3(D)> aD.2496 = *.LC0D.2503; is what's mainly different from 4.9. 5.0 seems to use a TImode load to initialize the stack with the const array. (insn 10 9 11 (set (mem/c:TI (reg:DI 91) [1 aD.2496+0 S16 A128]) (reg:TI 93)) foo.c:4 -1 (nil)) (insn 11 10 12 (set (reg:TI 94) (mem/u/c:TI (plus:DI (reg:DI 92) (const_int 16 [0x10])) [0 S16 A32])) foo.c:4 -1 (nil)) (insn 12 11 0 (set (mem/c:TI (plus:DI (reg:DI 91) (const_int 16 [0x10])) [1 aD.2496+16 S16 A128]) (reg:TI 94)) foo.c:4 -1 (nil)) ;; sum_23 = _10 + _22; (insn 13 12 14 (set (reg:SI 95) (mem/c:SI (plus:DI (reg/f:DI 68 virtual-stack-vars) (const_int -32 [0xffffffffffffffe0])) [1 aD.2496+0 S4 A128])) foo.c:9 -1 (nil)) When DSE wants to optimize it away, it fails to extract SI values from the TImode stores: **scanning insn=14 cselib lookup (reg/f:DI 64 sfp) => 3:3 cselib value 6:4299 0x2f6de50 (plus:DI (reg/f:DI 64 sfp) (const_int -28 [0xffffffffffffffe4])) cselib lookup (plus:DI (reg/f:DI 64 sfp) (const_int -28 [0xffffffffffffffe4])) => 6:4299 mem: (plus:DI (reg/f:DI 64 sfp) (const_int -28 [0xffffffffffffffe4])) after canon_rtx address: (plus:DI (reg/f:DI 64 sfp) (const_int -28 [0xffffffffffffffe4])) gid=0 offset=-28 processing const load gid=0[-28..-24) trying to replace SImode load in insn 14 from TImode store in insn 10 (lshiftrt:DI (reg:DI 105) (const_int 32 [0x20])) Hot cost: 8 (final) -- could not extract bits of stored value removing from active insn=10 has store mems_found = 0, cannot_delete = true cselib lookup (mem/c:SI (plus:DI (reg/f:DI 64 sfp) (const_int -28 [0xffffffffffffffe4])) [1 aD.2496+4 S4 A32]) => 0:0 **scanning insn=15 ....
next prev parent reply other threads:[~2014-11-04 16:32 UTC|newest] Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top [not found] <bug-63679-4@http.gcc.gnu.org/bugzilla/> 2014-10-30 10:04 ` belagod at gcc dot gnu.org 2014-10-30 10:10 ` rguenth at gcc dot gnu.org 2014-11-04 11:41 ` belagod at gcc dot gnu.org 2014-11-04 16:32 ` belagod at gcc dot gnu.org [this message] 2014-11-04 20:58 ` rguenth at gcc dot gnu.org 2014-11-20 12:44 ` rguenth at gcc dot gnu.org 2014-11-20 16:21 ` belagod at gcc dot gnu.org 2014-11-20 16:49 ` pinskia at gcc dot gnu.org 2014-11-21 8:48 ` rguenth at gcc dot gnu.org 2014-11-21 10:17 ` rguenth at gcc dot gnu.org 2014-11-21 10:26 ` belagod at gcc dot gnu.org 2014-11-21 10:36 ` rguenther at suse dot de 2014-11-21 10:54 ` belagod at gcc dot gnu.org 2014-11-21 11:25 ` jgreenhalgh at gcc dot gnu.org 2014-11-21 18:20 ` jgreenhalgh at gcc dot gnu.org 2014-11-24 8:52 ` rguenther at suse dot de 2014-11-24 11:16 ` belagod at gcc dot gnu.org 2014-11-24 11:31 ` rguenther at suse dot de 2014-11-24 12:01 ` jgreenhalgh at gcc dot gnu.org 2014-11-24 12:19 ` rguenther at suse dot de 2014-11-24 13:45 ` rguenth at gcc dot gnu.org 2014-11-24 13:45 ` rguenth at gcc dot gnu.org 2014-11-24 14:07 ` rguenth at gcc dot gnu.org 2015-02-07 10:55 ` [Bug target/63679] [5 " jakub at gcc dot gnu.org 2015-02-09 9:08 ` rguenth at gcc dot gnu.org 2015-02-09 10:10 ` jakub at gcc dot gnu.org 2015-02-09 12:20 ` belagod at gcc dot gnu.org 2015-02-09 13:17 ` rguenther at suse dot de 2015-02-09 13:34 ` belagod at gcc dot gnu.org 2015-03-12 16:53 ` [Bug target/63679] [5 / 6 " ramana at gcc dot gnu.org 2015-07-28 17:15 ` [Bug target/63679] [5/6 " alalaw01 at gcc dot gnu.org 2015-07-28 18:36 ` pinskia at gcc dot gnu.org 2015-07-29 7:23 ` rguenther at suse dot de 2015-07-29 17:50 ` alalaw01 at gcc dot gnu.org 2015-08-03 15:38 ` alalaw01 at gcc dot gnu.org 2015-08-04 9:30 ` rguenther at suse dot de
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-63679-4-dlGkzeppAh@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).