summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2017-07-02 16:31:16 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2017-07-02 16:31:16 +0000
commitdf2657ac2d626fd3128d0c1d8e4fb11d61231312 (patch)
tree0baa203db47c3fffa1dff7f96e8ff0173dcd3691 /llvm/lib
parentb51e072d358b8936034e22327cdf20105f7a4654 (diff)
downloadbcm5719-llvm-df2657ac2d626fd3128d0c1d8e4fb11d61231312.tar.gz
bcm5719-llvm-df2657ac2d626fd3128d0c1d8e4fb11d61231312.zip
[InstCombine] Use m_BitReverse pattern match helper. NFCI.
llvm-svn: 306986
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp b/llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
index 5de98ff7ad4..54b535e1b67 100644
--- a/llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
+++ b/llvm/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<Intrinsic::bitreverse>(m_Value(A))) &&
- match(Op1, m_Intrinsic<Intrinsic::bitreverse>(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;
OpenPOWER on IntegriCloud