This is the mail archive of the gcc@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]

Expressions simplification statistic


2006/10/17, Mike Stump <mrs@apple.com>:
On Oct 17, 2006, at 8:05 AM, Dino Puller wrote:
> i'm looking for a statistic of how many expressions simplification
> may be possible on source code

One way would be:

http://www.cs.fit.edu/~mmahoney/compression/text.html
But it´s a benchmark about compression.


though, this assumes a particular definition of simplification. For other definitions, gcc doesn't just tell you an answer, you'd have to define what you think a simplification is and then instrument gcc to provide that answer. This would be lots of hard work at best.
For expressions simplification i mean simply mathematical
simplificacions like: x/x=1 0*x=1 1*x=x and so on.


bye, Dino


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