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-ssa-coalesce ICE on ASM_EXPR (PR tree-optimization/31866)


On Wed, 2007-06-20 at 07:38 -0400, Jakub Jelinek wrote:
> Hi!
> 
> create_outofssa_var_map ICEs on the attached testcase, because
> DECL_REGISTER VAR_DECL input isn't SSA_NAME (that's correct).
> create_outofssa_var_map needs SSA_NAME_VERSION of both the input
> and output to coalesce them, therefore trying to do anything to
> coalesce a VAR_DECL with SSA_NAME wouldn't fit well into the
> current coalescing framework.
> 

I'm not sure why the && DECL_P was there... It clearly cannot work as
the code exists on that path...


> Ok for trunk?

yes, this is OK. 

Note these wouldn't have coalesced anyway since the base variables are
different (r and s).  Furthermore, the only place we ever coalesce
non-ssa-names with ssa_names is incoming arguments.

Andrew


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