This is for https://bugs.llvm.org/show_bug.cgi?id=42492
In patch for https://reviews.llvm.org/D63477, it assumes that all HardwareLoops loop branch instruction's condition is a icmp. This should be wrong.
For case in https://bugs.llvm.org/show_bug.cgi?id=42492 , branch instruction's condition is not a icmp, it is a or instead.