This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/18133] computed gotos are not folded back to regular gotos when it is found that they are not computed gotos at all
- From: "kazu at cs dot umass dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Jan 2005 20:56:36 -0000
- Subject: [Bug tree-optimization/18133] computed gotos are not folded back to regular gotos when it is found that they are not computed gotos at all
- References: <20041024233535.18133.pinskia@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From kazu at cs dot umass dot edu 2005-01-24 20:56 -------
Subject: Re: computed gotos are not folded
back to regular gotos when it is found that they are not computed gotos at
all
Hi Jeff,
> Interesting approach. I'm not sure if your approach is easier
> than just expanding the threading code to handle threading indirect
> jumps.
>
> I don't initially *think* that extending the threading code would be
> all that difficult. In fact, all I think we need to do is update
> the selection code to detect this case -- I think the code to update
> the CFG and SSA graphs will DTRT without any changes.
Some people do not want to see DOM getting bigger and bigger, so I
just wanted to point out that there is an approach without making DOM
any bigger, but then you're right. I don't think extending the jump
threader is all that difficult or dirty, either. Either approach
works for me.
Kazu Hirata
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18133