[InstCombine] improve code comments; NFC

This commit is contained in:
Sanjay Patel 2021-10-13 10:40:44 -04:00
parent 89ec99c778
commit 02928fcb8c
1 changed files with 2 additions and 2 deletions

View File

@ -1950,8 +1950,8 @@ Instruction *InstCombinerImpl::foldICmpOrConstant(ICmpInst &Cmp,
}
}
// (X | (X-1)) s< 0 --> X < 1
// (X | (X-1)) s> -1 --> X > 0
// (X | (X-1)) s< 0 --> X s< 1
// (X | (X-1)) s> -1 --> X s> 0
Value *X;
bool TrueIfSigned;
if (isSignBitCheck(Pred, C, TrueIfSigned) &&