XChy wrote: I think folding it if the number of reachable successors <= 3 is OK, because the backend doesn't create a lookup table in this case, and the real-world case in original issue also holds only 3 successors. https://github.com/llvm/llvm-project/pull/86307