This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Why is delete_null_pointer_checks called twice
- From: law at redhat dot com
- To: Jan Hubicka <jh at suse dot cz>
- Cc: gcc at gcc dot gnu dot org
- Date: Sat, 22 Feb 2003 16:12:20 -0700
- Subject: Re: Why is delete_null_pointer_checks called twice
- Reply-to: law at redhat dot com
In message <20030222230257 dot GM27695 at kam dot mff dot cuni dot cz>, Jan Hubicka writes:
>Hi,
>the delete_null_pointer_checks is called twice - once before and once
>after CSE1 pass. Why we are doing so? Is this really needed?
The two passes interact with each other. Removal of null pointers
leads to more CSE opportunities and some of the CSE simplifications
can lead to more null pointer check removals.
It wasn't deemed worth the effort to iterate until nothing changed or
to run the null pointer check removal after cse2.
jeff