This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [tree-ssa] Fix mudflap codegen and allow optimizations [patch]
- From: Jason Merrill <jason at redhat dot com>
- To: Diego Novillo <dnovillo at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org, "Frank Ch. Eigler" <fche at redhat dot com>
- Date: Sun, 27 Apr 2003 20:12:19 -0400
- Subject: Re: [tree-ssa] Fix mudflap codegen and allow optimizations [patch]
- References: <20030427220236.GA26487@tornado.toronto.redhat.com>
On Sun, 27 Apr 2003 18:02:36 -0400, Diego Novillo <dnovillo at redhat dot com> wrote:
> Finally, I moved mudflap to run after the SSA optimizers.
This seems wrong to me. mudflap seems like the sort of local
transformation that should happen early, much like inlining, so that the
transformed code is exposed to the other optimization passes.
> Although the optimizers are still not very smart wrt pointers and
> arrays, they do manage to remove the odd pointer or array
> reference. And, in fact, after I did that a bunch of libmudflap
> tests started failing because DCE was removing the very code that
> mudflap was supposed to instrument.
??? If the accesses were dead, then DCE should remove them. Sounds like we
want to fix the testcases, not cripple the optimizers.
Jason