]> granicus.if.org Git - llvm/commit
[PatternMatch] Remove 64-bit or less restriction from m_SpecificInt
authorCraig Topper <craig.topper@gmail.com>
Tue, 27 Jun 2017 15:39:40 +0000 (15:39 +0000)
committerCraig Topper <craig.topper@gmail.com>
Tue, 27 Jun 2017 15:39:40 +0000 (15:39 +0000)
commit0c8e44ed16628f38d5f82f731ddd7d2dbba502f0
treee33cd9cd8ddeb561a28fc7692315e796cb794c25
parent0c15ad3a8cd4cce43ab777640cbb58a68136c54e
[PatternMatch] Remove 64-bit or less restriction from m_SpecificInt

Not sure why this restriction existed, but it seems like we should support any size Constant here.

The particular pattern in the tests is not the only use of this matcher in the tree. There's one in CodeGenPrepare and one in InstSimplify as well.

Differential Revision: https://reviews.llvm.org/D34666

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@306417 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/PatternMatch.h
test/Transforms/InstCombine/select-cmp-cttz-ctlz.ll