On Sat, 24 Aug 2024 at 12:06, Nicholas Wilson via Digitalmars-d <digitalmars-d@puremagic.com> wrote:
On Friday, 23 August 2024 at 01:47:37 UTC, Manu wrote:
> I'm working on microcontrollers, and many don't have a branch
> predictor. They do "static" prediction, that is, they just
> predict branch-not-taken and it's on you to write your code as
> such, and that's not always possible. (like the loop condition
> in a for loop)

Stupid questions: does PGO work on the microcontrollers, and 
have you tried PGO?

Maybe... I'd have to source the profile from an alt architecture though... I wonder if the profile is at a higher level (like in the LLVM realm), or if it ends up profiling target-local constructs.
I'm not likely to use it anyway. I've always found tooling like that to add unsatisfactory complexity to the build and deploy environment, especially when the build environment is already a bit fiddley with ROM packaging and stuff.