From: Simon Pilgrim Date: Sun, 2 Jul 2017 16:31:16 +0000 (+0000) Subject: [InstCombine] Use m_BitReverse pattern match helper. NFCI. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c465e8b59fcc8a49ad130b9648e50cd4a176fb0b;p=llvm [InstCombine] Use m_BitReverse pattern match helper. NFCI. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@306986 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/InstCombine/InstCombineCompares.cpp b/lib/Transforms/InstCombine/InstCombineCompares.cpp index 5de98ff7ad4..54b535e1b67 100644 --- a/lib/Transforms/InstCombine/InstCombineCompares.cpp +++ b/lib/Transforms/InstCombine/InstCombineCompares.cpp @@ -3447,8 +3447,8 @@ Instruction *InstCombiner::foldICmpEquality(ICmpInst &I) { // TODO: Move this to a function similar to foldICmpIntrinsicWithConstant() // and handle more intrinsics. if ((match(Op0, m_BSwap(m_Value(A))) && match(Op1, m_BSwap(m_Value(B)))) || - (match(Op0, m_Intrinsic(m_Value(A))) && - match(Op1, m_Intrinsic(m_Value(B))))) + (match(Op0, m_BitReverse(m_Value(A))) && + match(Op1, m_BitReverse(m_Value(B))))) return new ICmpInst(Pred, A, B); return nullptr;