Does hitting a switch statement in C (assuming that it uses a jump table) empty the pipeline of an x86 processor? I’m thinking that it might because it would need the result of the table lookup to know what instruction to execute next. Can it forward that result back early enough that the pipeline doesn’t get totally emptied?
Share
I’ve found The microarchitecture of Intel, AMD and VIA CPUs to be a good source for questions like yours.