Re: CTFE-PGO ... Because I was bored

2016-12-14 Thread Stefan Koch via Digitalmars-d
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

Re: CTFE-PGO ... Because I was bored

2016-12-13 Thread Era Scarecrow via Digitalmars-d
On Wednesday, 14 December 2016 at 05:07:17 UTC, Stefan Koch wrote: I have just written a little piece of code that counts which switch-cases are executed most frequently versus how often their conditions are evaluated. This can essentially be the basis for pgo based on the ctfe-function

Re: CTFE-PGO ... Because I was bored

2016-12-13 Thread Stefan Koch via Digitalmars-d
On Wednesday, 14 December 2016 at 05:07:17 UTC, Stefan Koch wrote: Hi Guys, Implementing and TESTING function-call support is boring so ... I have just written a little piece of code that counts which switch-cases are executed most frequently versus how often their conditions are evaluated.

CTFE-PGO ... Because I was bored

2016-12-13 Thread Stefan Koch via Digitalmars-d
Hi Guys, Implementing and TESTING function-call support is boring so ... I have just written a little piece of code that counts which switch-cases are executed most frequently versus how often their conditions are evaluated. This can essentially be the basis for pgo based on the