[SCEV] Check `Pred` first in isKnownPredicateViaSplitting
authorSanjoy Das <sanjoy@playingwithpointers.com>
Thu, 8 Oct 2015 03:46:00 +0000 (03:46 +0000)
committerSanjoy Das <sanjoy@playingwithpointers.com>
Thu, 8 Oct 2015 03:46:00 +0000 (03:46 +0000)
commit1f802826f7d4a9f95ad058193fbb4ff5e30bb699
treece9e5275e805aa8b3ca5a1c9529ffb38b84202df
parent93fe24d5fcade78207ddf48b89d96616fbb187f1
[SCEV] Check `Pred` first in isKnownPredicateViaSplitting

Comparing `Pred` with `ICmpInst::ICMP_ULT` is cheaper that memory access
-- do that check before loading / storing `ProvingSplitPredicate`.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@249654 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/ScalarEvolution.cpp