Re:AMD ships microcode update to disable some branch prediction
by pertymcpert on Friday January 05, 2018 @09:04PM
(#16083419)
Not if it's a known constant trip count, then you can fully unroll it. No more branches!
If the trip count isn't known at compile time? You should find out.
So being unsure about how many times you want to do a thing is a no-go too.