@@ -0,0 +1,29 @@
+/* { dg-do compile } */
...
+
+/* { dg-final { scan-tree-dump-times "\\\*" 4 "reassoc1" } } */
I would have expected 3. Also please check for \\\* 5 for example
to be more specific (and change the cases so you get different constants
for the different functions).
That said, please make the scans more specific.
Thanks,
Richard.
>>> that easily). You also don't want to set the location to the last stmt
>>> of the
>>> whole add sequence - simply leave it unset.
>>>
>>> + oe = operand_entry_pool.allocate ();
>>> + oe->op = tmp;
>>> + oe->rank = get_rank (op) * count;
>>>
>>> ? Why that? oe->rank should be get_rank (tmp).
>>>
>>> + oe->id = 0;
>>>
>>> other places use next_operand_entry_id++. I think you want to simply
>>> use add_to_ops_vec (oe, tmp); here for all of the above.