This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: PR target/46519: Missing vzeroupper
On Thu, Jan 13, 2011 at 9:49 AM, Richard Henderson <rth@redhat.com> wrote:
> On 01/05/2011 08:39 AM, H.J. Lu wrote:
>> Are there any existing GCC passes which implement their own data-flow
>> analysis?
>
> See also walk_dominator_tree and in general domwalk.c.
>
> I don't believe you can iterate with walk_dominator_tree, but
> examining its implementation will show you (1) how to walk the
> blocks in an optimal order and (2) how to use a worklist to
> queue blocks for (re-)processing.
>
> Alternately, one pass via walk_dominator_tree might give results
> that are good enough such that you may drop iteration entirely.
>
Hi Richard,
I implemented the similar work-list based algorithm based on
vt_find_locations in var-tracking.c:
http://gcc.gnu.org/ml/gcc-patches/2011-01/msg00846.html
Does it it look OK?
Thanks.
--
H.J.