[Bug rtl-optimization/65783] after reload, the memrefs_conflict_p is unreliable?

2015-04-16 Thread wangjiefeng at huawei dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65783 --- Comment #3 from Jason --- when sched1 the RTL is as follows: (note 4 1 3 2 [bb 2] NOTE_INSN_BASIC_BLOCK) (note 3 4 10 2 NOTE_INSN_FUNCTION_BEG) (note 10 3 12 2 NOTE_INSN_DELETED) (note 12 10 20 2 NOTE_INSN_DELETED) (insn 20 12 2 2 (set (reg/f

[Bug c/65784] New: after reload, the memrefs_conflict_p is unreliable?

2015-04-15 Thread wangjiefeng at huawei dot com
Component: c Assignee: unassigned at gcc dot gnu.org Reporter: wangjiefeng at huawei dot com int f = -1; int foo(int * pa) { int a = 1; *(pa) = a; pa = pa + f; a = *(pa + 1); return a; } With -O2, the ARM's assembler is as follows: foo: @ args = 0, preten

[Bug c/65783] New: after reload, the memrefs_conflict_p is unreliable?

2015-04-15 Thread wangjiefeng at huawei dot com
Component: c Assignee: unassigned at gcc dot gnu.org Reporter: wangjiefeng at huawei dot com int f = -1; int foo(int * pa) { int a = 1; *(pa) = a; pa = pa + f; a = *(pa + 1); return a; } With -O2, the ARM's assembler is as follows: foo: @ args = 0, preten