diff options
author | Craig Topper <craig.topper@gmail.com> | 2017-06-24 06:24:01 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2017-06-24 06:24:01 +0000 |
commit | 72ee6945af885fe9133a51700bc8433762f5b371 (patch) | |
tree | 94a35a82f663082168cb13f5e1d4756c9456cee3 /llvm/lib/Transforms/Utils/LoopUtils.cpp | |
parent | c948178af8b9158f0fd6bfdb2f76f7cc1c35f828 (diff) | |
download | bcm5719-llvm-72ee6945af885fe9133a51700bc8433762f5b371.tar.gz bcm5719-llvm-72ee6945af885fe9133a51700bc8433762f5b371.zip |
[Analysis][Transforms] Use commutable matchers instead of m_CombineOr in a few places. NFC
llvm-svn: 306204
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopUtils.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/LoopUtils.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Utils/LoopUtils.cpp b/llvm/lib/Transforms/Utils/LoopUtils.cpp index be151a3e508..88fa9812da4 100644 --- a/llvm/lib/Transforms/Utils/LoopUtils.cpp +++ b/llvm/lib/Transforms/Utils/LoopUtils.cpp @@ -88,8 +88,7 @@ RecurrenceDescriptor::lookThroughAnd(PHINode *Phi, Type *&RT, // Matches either I & 2^x-1 or 2^x-1 & I. If we find a match, we update RT // with a new integer type of the corresponding bit width. - if (match(J, m_CombineOr(m_And(m_Instruction(I), m_APInt(M)), - m_And(m_APInt(M), m_Instruction(I))))) { + if (match(J, m_c_And(m_Instruction(I), m_APInt(M)))) { int32_t Bits = (*M + 1).exactLogBase2(); if (Bits > 0) { RT = IntegerType::get(Phi->getContext(), Bits); |