Simplify compiler code that checks for discontiguous predicates