tree-eh.c vs. CFGs

Stuart Hastings stuart@apple.com
Thu Jun 17 23:05:00 GMT 2004


On Jun 17, 2004, at 1:34 PM, Richard Henderson wrote:

> On Thu, Jun 17, 2004 at 01:01:35PM -0700, Stuart Hastings wrote:
>> I believe the Right Thing to do is revise tree-eh.c to work on CFGs.
>
> No.  You can't build a correct CFG without running pass_lower_eh.

Moot point.

The inliner doesn't really care if the CFG is "correct" or not; it's 
mostly concerned with finding the calls and splicing the blocks.  
Inlining before lowering EH nodes would be easier for the inliner (but 
nobody else seems to be concerned about that ;-).

All those edges are just a nuisance...  :-)

> If you want to do inlining in the presence of CFGs, then you have
> to run *everything* up to pass_build_cfg.  And then you have to
> make the inliner be aware of the EH data on the side, and merge it.

O.K.

stuart hastings
Apple Computer



More information about the Gcc mailing list