[PatternMatch] Switch to use ValueTracking::matchSelectPattern
authorJames Molloy <james.molloy@arm.com>
Mon, 2 Nov 2015 09:54:00 +0000 (09:54 +0000)
committerJames Molloy <james.molloy@arm.com>
Mon, 2 Nov 2015 09:54:00 +0000 (09:54 +0000)
commitd3c80611a2da29bb217d5c1eaea284039ea664d4
treed46b93672f23418eef8778b962efa211f4713351
parent8bd55b5451112a16df49711ec735f77a9a1a4f75
[PatternMatch] Switch to use ValueTracking::matchSelectPattern

Instead of rolling our own min/max matching code (which is notoriously
hard to get completely right), use ValueTracking's instead.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@251785 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/PatternMatch.h