This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/64434] [5 Regression] Performance regression after operand canonicalization (r216728).
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 13 Jan 2015 16:04:48 +0000
- Subject: [Bug tree-optimization/64434] [5 Regression] Performance regression after operand canonicalization (r216728).
- Auto-submitted: auto-generated
- References: <bug-64434-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64434
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #12 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Shouldn't you cache the result of count_num_stmt in some SSA_NAME_VERSION
indexed vector? Otherwise it can be expensive on pathological testcases.
And with the caching I'd hope it should be cheap enough that you could do that
even outside of loops.