https://gcc.gnu.org/bugzilla/show_bug.cgi?id=24021

--- Comment #18 from Vincent Lefèvre <vincent-gcc at vinc17 dot net> ---
I'm wondering whether it is possible to check on actual code what is needed.
For instance, assume that you have a program that produces always the same
results, e.g. by running it over a fixed dataset. GCC could get some
information about actual FP values (a bit like profile generation). Then check
what benefit you can get by using these data at compile time (contrary to
optimization with profile use, you assume here that the obtained information is
necessarily valid, which is true as long as the program is run on the chosen
dataset). The difficulty is to find whether some benefit can be obtained by
VRP, but this should give an upper bound on the speedup you can hope to get. So
perhaps this can give some useful information about what to focus on.

Reply via email to