[PATCH] factor out generic (de)initialization of ANTIC and AVAIL in PRE

Bernhard Fischer rep.dot.nop@gmail.com
Wed Jun 18 19:30:00 GMT 2008


Hi,

The attached patch factors the (de)initialization of ANTIC and AVAIL
sets used by PRE into init_antic() and fini_antic().

The patch was bootstrapped and regtested with languages=c,fortran on
i686 with no regressions.
OK for trunk?

gcc/ChangeLog
2008-06-18  Bernhard Fischer  <>

	* tree-ssa-pre.c: Fix typo in comment.
	(init_antic, fini_antic): Add explicit funtions for
	initializing and deinitializing ANTIC and AVAIL sets.
	(create_expression_by_pieces): Fix typo in comment.
	Remove redundant set of new_stuff and use NULL_TREE instead of
	NULL.
	(execute_pre): Eventually dump details about ANTIC_IN.


2008-06-18  Bernhard Fischer  <>

	* tree-ssa-pre.c: (bitmap_set_empty_p, bitmap_set_ior_into): New
	functions.

PS:
I need to populate the antic and avail sets in another pass (see PR11832
for the .plan layed out by stevenb) and don't want to update the code
after it got converted into tuples.

PPS: Of course i will exclude bitmap_set_empty_p() and
bitmap_set_ior_into() if somebody objects to installing them now. I
only need them in aforementioned pass, for now they are not used.
Perhaps all bitmap_set manipulators should be put into separate files
that would be used by PRE et al?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gcc-4.4-tree-ssa-pre-init_antic.01.patch
Type: text/x-diff
Size: 7243 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20080618/1c771016/attachment.bin>


More information about the Gcc-patches mailing list