This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [tree-ssa] Fix mudflap codegen and allow optimizations [patch]


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]