What is Branch Prediction?
stackoverflow.com
stackoverflow.com
C++: http://www.stack-ed.com/#tag/c%2B%2B/user/922184/Mysticial
Performance: http://www.stack-ed.com/#tag/performance/user/922184/Mystici...
Language-Agnostic: http://www.stack-ed.com/#tag/language-agnostic/user/922184/M...
Optimization: http://www.stack-ed.com/#tag/optimization/user/922184/Mystic...
Branch-Prediction: http://www.stack-ed.com/#tag/branch-prediction/user/922184/M...
IIRC, this is called Power Leveling.
and I did it to test if it would work, and it did not worked, and now it worked.. :/
now I guess that spamming SO does work after all.
Why do people want power? Evolutionary reasons.
Probably for men we see it as a way to reproduce a lot for women it's probably seen as a way to ensure their children are successful and reproduce.
It gets a bit depressing if you think about it to much. Just enjoy life and accept things.
Also, I've been here for three years and I don't recall seeing it before, so it can't be posted that often. You must just happen to catch it a lot. I wouldn't have known it was a dupe if you hadn't pointed it out.
It might still need to flush the pipelines when there are several branches in succession but you'd still be able to use branch prediction to predict the two most likely branches, which would help tremendously.
http://en.wikipedia.org/wiki/Explicitly_parallel_instruction...
" The EPIC architecture also includes a grab-bag of architectural concepts to increase ILP:
Predicated execution is used to decrease the occurrence of branches and to increase the speculative execution of instructions. In this feature, branch conditions are converted to predicate registers which are used to kill results of executed instructions from the side of the branch which is not taken. . . . Multi-way branch instructions improve branch prediction by combining many alternative branches into one bundle. "
The problem is that you rapidly run out of execution resources (what if there are more branches to follow, for example) and you will burn lots of energy executing things that don't happen (not to mention speculatively loading things that aren't needed, etc). I remember seeing some papers on the limits of ILP and I think this was one of the 'extreme' ideas (speculation down multiple paths).