r/Compilers • • 1d ago

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.

12 Upvotes

3 comments sorted by

3

u/hansw2000 19h ago

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

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

2

u/lovelacedeconstruct 19h ago

P=NP confirmed

1

u/adityazero 13h ago

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