r/Compilers • • Oct 02 '26

From NP-complete to O(N^2) to O(nlogn): Codegen strategies for case statements.

https://arxiv.org/abs/1910.02351

We presented this a while ago at the LLVM-CGO workshop, but thought of sharing here as people might find it interesting. Pretty short paper.

26 Upvotes

3 comments sorted by

4

u/hansw2000 Oct 02 '26

I believe this was https://reviews.llvm.org/D21940

Hadn't seen the paper though, so thanks for sharing!

3

u/lovelacedeconstruct Oct 02 '26

P=NP confirmed

0

u/adityazero Oct 02 '26

😂 and now you know which camp I'm in.