Re: [PATCH]AArch64: only discount MLA for vector and scalar statements

2023-11-16 Thread Richard Sandiford
Tamar Christina writes: > Hi All, > > In testcases gcc.dg/tree-ssa/slsr-19.c and gcc.dg/tree-ssa/slsr-20.c we have > a > fairly simple computation. On the current generic costing we generate: > > f: > add w0, w0, 2 > maddw1, w0, w1, w1 > lsl w0, w1, 1 >

[PATCH]AArch64: only discount MLA for vector and scalar statements

2023-11-15 Thread Tamar Christina
Hi All, In testcases gcc.dg/tree-ssa/slsr-19.c and gcc.dg/tree-ssa/slsr-20.c we have a fairly simple computation. On the current generic costing we generate: f: add w0, w0, 2 maddw1, w0, w1, w1 lsl w0, w1, 1 ret but on any other cost model but generi