[InstCombine] Use CmpInst::Predicate with m_Cmp instead of ICmpInst::Predicate. NFC

There isn't really an ICmpInst version so we're just accessing the CmpInst version through inheritance.

llvm-svn: 307199
This commit is contained in:
Craig Topper 2017-07-05 20:31:00 +00:00
parent 9bf73c078b
commit cc418b656a
1 changed files with 1 additions and 1 deletions

View File

@ -2458,7 +2458,7 @@ Instruction *InstCombiner::visitXor(BinaryOperator &I) {
}
// not (cmp A, B) = !cmp A, B
ICmpInst::Predicate Pred;
CmpInst::Predicate Pred;
if (match(&I, m_Not(m_OneUse(m_Cmp(Pred, m_Value(), m_Value()))))) {
cast<CmpInst>(Op0)->setPredicate(CmpInst::getInversePredicate(Pred));
return replaceInstUsesWith(I, Op0);