CTFE-PGO ... Because I was bored

Stefan Koch via Digitalmars-d digitalmars-d at puremagic.com
Wed Dec 14 01:20:32 PST 2016


On Wednesday, 14 December 2016 at 06:00:08 UTC, Era Scarecrow 
wrote:

>  Aside from just counting the results, is this going to 
> possibly affect compilation/code generation to get speed/size 
> optimization?

Well Yes.
That is the plan at least :)
CTFE could stream it's branch-counts directly into the optimizer.

I am not in the position to say how tricky it would be to provide 
this information to the backend, but I guess it will take a bit 
of fiddling.


More information about the Digitalmars-d mailing list