summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@intel.com>2017-07-05 20:31:00 +0000
committerCraig Topper <craig.topper@intel.com>2017-07-05 20:31:00 +0000
commitcc418b656a209d65943fa915a923f115d16872e7 (patch)
tree81a37686f6245fde33126d0f7f55691636a6075b /llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
parent9bf73c078b9a6a0bea5bf044e5ff9f8df18dc81a (diff)
downloadbcm5719-llvm-cc418b656a209d65943fa915a923f115d16872e7.tar.gz
bcm5719-llvm-cc418b656a209d65943fa915a923f115d16872e7.zip
[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
Diffstat (limited to 'llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp')
-rw-r--r--llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp b/llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
index afc3b064c6c..55486f15ae0 100644
--- a/llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
+++ b/llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
@@ -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);
OpenPOWER on IntegriCloud