chipsalliance / VeeR-ISS

Apache License 2.0
114 stars 33 forks source link

weired goto with label address array #28

Open BaoshanPang opened 1 year ago

BaoshanPang commented 1 year ago

Just curios, why we code like this? what's the benefit using "goto" with label addresses array than using the plain "switch"?

https://github.com/chipsalliance/VeeR-ISS/blob/a6fabee95de4aa0f3e9b1ff97d02d1d7af62d3bd/decode.cpp#L1922

jrahmeh commented 1 year ago

There was a significant reduction in runtime by going from a switch to the goto solution.