[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)
commit5603fc00a6f0f344de9e771d8b2ef9f141d40fe7
tree40acce4f0090713bd54e0cd8ea62efc18221541e
parent5c4869b39d72a257147259aa3761375216230594
[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.

llvm-svn: 282375
llvm/include/llvm/Analysis/ScalarEvolution.h
llvm/lib/Analysis/ScalarEvolution.cpp