Combine redundant rule conditions to work around LLVM bug 52455 fully