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: [patch] gcc.dg/tree-ssa/*.c: Use -O2 in some testcases.


Hi Diego,

> Well, I'm not so interested in *what* does the optimization so
> much as in getting it done.  The problem with testing
> pass-specific optimizations is that reshuffling the optimization
> pipeline becomes an annoying process.  I would much prefer doing
> either link-time tests or .optimized dump scans.
> 
> I know it's not perfect, because we may get the program optimized
> by blind-luck otherwise, but we could for instance enable just
> the pass that is supposed to do the work, and nothing else.

OK.  I guess for a trivial testcase, one can tie it to (the first run
of) a specific pass if he/she *wants* to do so.  In any case, we are
doing a lot better than those old RTL days in that we are now adding
target-independent testcases that tests optimizations, not just ICEs
and wrong code in some weird corner cases.

> OK.

Thanks.

Kazu Hirata


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