llvm.org GIT mirror llvm / 3af0132
[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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@307199 91177308-0d34-0410-b5e6-96231b3b80d8 Craig Topper 2 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
24572457 }
24582458
24592459 // not (cmp A, B) = !cmp A, B
2460 ICmpInst::Predicate Pred;
2460 CmpInst::Predicate Pred;
24612461 if (match(&I, m_Not(m_OneUse(m_Cmp(Pred, m_Value(), m_Value()))))) {
24622462 cast(Op0)->setPredicate(CmpInst::getInversePredicate(Pred));
24632463 return replaceInstUsesWith(I, Op0);