]> granicus.if.org Git - llvm/commit
[InstCombine] Teach foldICmpUsingKnownBits to simplify SLE/SGE/ULE/UGE to equality...
authorCraig Topper <craig.topper@intel.com>
Fri, 22 Sep 2017 21:47:22 +0000 (21:47 +0000)
committerCraig Topper <craig.topper@intel.com>
Fri, 22 Sep 2017 21:47:22 +0000 (21:47 +0000)
commite402b549badd6aa7066802d91b711c8a995da317
tree5f5277f1f5498a7a0f548733e0df5f5d83c84245
parentd75d4fb90db7fb28df1f3fdcc3bb573ed81469c5
[InstCombine] Teach foldICmpUsingKnownBits to simplify SLE/SGE/ULE/UGE to equality comparisons when the min/max ranges intersect in a single value.

This is the inverse of what we do for SGT/SLT/UGT/ULT.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@314032 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineCompares.cpp
test/Transforms/InstCombine/icmp.ll