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
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
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