This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix tree-opt/22037, ICE not renaming a VOP



On Jul 4, 2005, at 6:37 AM, Andrew Pinski wrote:


The problem here is that we copy propagate a constant into a builtin but we don't
(and cannot) rename the vops as we are doing this optimization in tree-cfg when
merging two basic blocks.
This patch fixes the problem by creating a variable for that PHI if it is a
constant so we don't fold the builtin.


OK? Bootstrapped and tested on powerpc-darwin with no regressions.

Thanks,
Andrew Pinski

Woops forgot the changelog: * tree-cfg.c (tree_merge_blocks): Don't propagate constants either.

-- Pinski


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]