Hi,
Enclosed two files are a simple C program and the related CFG
created in the pre_optimizer. There are several entries for the CFG. And
I want to use cfg->Entry_bb()->Id() & cfg->Exit_bb()->Id() to get the
entry&exit of the CFG(Initially, I had thought there should be only one
entry and one exit). The result is:
entry=16,exit=17
Can somebody explain me when this kind of CFG is generated?
Thanks.
--
Regards
Peng
--
Peng Zhao pengzhao@xxxxxxxxxxxxxx
http://www.cs.ualberta.ca/~pengzhao
TEL (Lab): (780)492-3725 Lab: CSC251
cfg
Description: PostScript document
test.c
Description: Text document
|