vsk added a comment. Thanks! I found this much easier to follow. It might be worth adding negative tests (for >1 jae), where the conditions of adjacent SelectInst's differ, or where there is overlap between the true/false values. https://reviews.llvm.org/D24147