forked from OSchip/llvm-project
[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:
parent
9bf73c078b
commit
cc418b656a
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue