[llvm-commits] [Patch] Replace switches with lookup tables (PR884)

Anton Korobeynikov anton at korobeynikov.info
Sun Sep 9 01:53:51 PDT 2012


Hans,

> After my patch, we just inline a comparison, branch, and load. I guess
> that explains the new code size for this file :) I suspect the other
> major size reductions are for similar reasons.
Note that isel doing switch lowering also emits jump tables. However,
this explains why it wasn't be able to do anything in this case.

-- 
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University



More information about the llvm-commits mailing list