michaelmaitland wrote: IIUC we could have two nested switches (constant time lookup), but now we are using binary search (logarithmic time lookup). Will this cause any time related regressions? https://github.com/llvm/llvm-project/pull/117351