This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] Speed up operand_equal_p during SSA optimizations.
Hi Roger,
> int
> operand_equal_for_phi_arg_p (tree arg0, tree arg1)
> {
> if (arg0 == arg1)
> return 1;
> if (TREE_CODE (arg0) == SSA_NAME || TREE_CODE (arg1) == SSA_NAME)
> return 0;
> return operand_equal_p (arg0, arg1, 0);
> }
Your approach seems to have the biggest impact among several things
I've tried.
Here is a timing in seconds for 5 runs of "./cc1 -quiet -O2
-fomit-frame-pointer -o /dev/null insn-attrtab.i".
original patched
real: 195.931 192.715 (1.668% down)
user: 191.533 189.329 (1.164% down)
I'll test this and submit it for review. I have several patches in my
queue, so I haven't got to testing any operand_equal_p patch, yet. :-(
Kazu Hirata