This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/18576] [3.4/4.0 Regression] missing jump threading because of type changes
- 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: 12 Dec 2004 17:26:25 -0000
- Subject: [Bug tree-optimization/18576] [3.4/4.0 Regression] missing jump threading because of type changes
- References: <20041120062915.18576.pinskia@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From kazu at cs dot umass dot edu 2004-12-12 17:26 -------
> One approach is to go with the phi optimization rewrite which allows it
> to work with > 2 predecessors to the PHI block.
This is done on tree-cleanup-branch.
> Another would be to look at Kazu's work which (IIRC) tried to identify
> typecasts which were fed by PHIs with all constant arguments. It then
> removed the typecast and original PHI and installed a new PHI with a
> result of the proper type.
The problem of replacing one PHI node with another is filed as PR 14843.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18576