OSDN Git Service

[SCEV] Combine two predicates into one; NFC
authorSanjoy Das <sanjoy@playingwithpointers.com>
Mon, 26 Sep 2016 02:44:07 +0000 (02:44 +0000)
committerSanjoy Das <sanjoy@playingwithpointers.com>
Mon, 26 Sep 2016 02:44:07 +0000 (02:44 +0000)
commita80a7d1c30562b8c351ea50d7bf41e8c7d85d277
tree3364977a17c4355ffc2ab21d8fdde3de09042dfc
parent98e898ce469aebf3236321941ef7d2de8d3cd801
[SCEV] Combine two predicates into one; NFC

Both `loopHasNoSideEffects` and `loopHasNoAbnormalExits` involve walking
the loop and maintaining similar sorts of caches.  This commit changes
SCEV to compute both the predicates via a single walk, and maintain a
single cache instead of two.

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