]> granicus.if.org Git - llvm/commit
[PatternMatch] Generalize m_SpecificInt_ULT() to take ICmpInst::Predicate
authorRoman Lebedev <lebedev.ri@gmail.com>
Wed, 10 Jul 2019 16:07:35 +0000 (16:07 +0000)
committerRoman Lebedev <lebedev.ri@gmail.com>
Wed, 10 Jul 2019 16:07:35 +0000 (16:07 +0000)
commite90a51722f826d1b67bb2bd70f567e4fe96df4a5
tree30cf2c71728b19bb1c5c5309dd440594ff586b0e
parentee874d9658f97c28c2267e9b81e5e81ce8114629
[PatternMatch] Generalize m_SpecificInt_ULT() to take ICmpInst::Predicate

As discussed in the original review, this may be useful,
so let's just do it.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@365652 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/PatternMatch.h
lib/Transforms/InstCombine/InstCombineCompares.cpp
lib/Transforms/InstCombine/InstCombineShifts.cpp
unittests/IR/PatternMatch.cpp