Speedup PTA solving for call constraint sets
authorRichard Biener <rguenther@suse.de>
Fri, 10 Mar 2023 13:15:14 +0000 (14:15 +0100)
committerRichard Biener <rguenther@suse.de>
Fri, 10 Mar 2023 14:08:12 +0000 (15:08 +0100)
commit413ec1d12c50f8e2e6adb4de30482780bdfdeeb4
treeba3903bf799f1192211ca0590f9f3bd8d4ddaa4f
parent649f1939baf11f45fd3579b8b9601c7840a097b3
Speedup PTA solving for call constraint sets

With calls we now often get contraints like

  callarg = *callarg + UNKNOWN

or similar cases.  The important thing to note is that this
complex constraint changes the node solution itself, so when
solving the node is marked as changed immediately again.  When
that happens it's profitable to iterate that self-cycle immediately
so we maximize cache reuse and build up the successor graph quickly
to get better topological ordering and reduce the number of
iterations of the solving.

For a testcase derived from ceph this reduces the time spent in
PTA solving from 453s to 92s which is quite significant.

* tree-ssa-structalias.cc (solve_graph): Immediately
iterate self-cycles.
gcc/tree-ssa-structalias.cc