mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 12:12:47 +01:00
[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
d6548e35b2
commit
c9e943222b
@ -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
Block a user