[Bug tree-optimization/108696] querying relations is slow

2023-02-10 Thread amacleod at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108696 --- Comment #5 from Andrew Macleod --- (In reply to Richard Biener from comment #4) > > That said, not allocating the self-relation bitmaps at query time is > definitely good (not 100% sure if the patch achieves that). If it can determine ah

[Bug tree-optimization/108696] querying relations is slow

2023-02-10 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108696 --- Comment #4 from Richard Biener --- (In reply to Andrew Macleod from comment #2) > Created attachment 54437 [details] > possible patch > > This patch should successfully short circuit unnecessary checks. untested in > compiler.i > > Where d

[Bug tree-optimization/108696] querying relations is slow

2023-02-08 Thread rguenther at suse dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108696 --- Comment #3 from rguenther at suse dot de --- > Am 08.02.2023 um 18:50 schrieb amacleod at redhat dot com > : > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108696 > > --- Comment #2 from Andrew Macleod --- > Created attachment 54437 >

[Bug tree-optimization/108696] querying relations is slow

2023-02-08 Thread amacleod at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108696 --- Comment #2 from Andrew Macleod --- Created attachment 54437 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54437&action=edit possible patch This patch should successfully short circuit unnecessary checks. untested in compiler.i Where

[Bug tree-optimization/108696] querying relations is slow

2023-02-08 Thread amacleod at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108696 --- Comment #1 from Andrew Macleod --- I think that change will end up missing equivalences and transitives. The m_relation_set bitmap is only used to track non-equivalence relations registered with the oracle. Equivalences are handled separate