Make SCEVRewriteVisitor smarter about when it trys to create SCEVs
authorSanjoy Das <sanjoy@playingwithpointers.com>
Fri, 14 Apr 2017 17:42:08 +0000 (17:42 +0000)
committerSanjoy Das <sanjoy@playingwithpointers.com>
Fri, 14 Apr 2017 17:42:08 +0000 (17:42 +0000)
commit7ea3cb100888d55c943df59fdb343fceb7dfe90a
tree4f05c25518d0429da6d76ad2555bc8455e23a3b8
parentd57e29f8662bdc284d36bc0d0361f543a16e2ae0
Make SCEVRewriteVisitor smarter about when it trys to create SCEVs

This change really saves just one foldingset lookup, but makes
SCEVRewriteVisitor "feature compatible" with the handwritten logic in
ScalarEvolutionNormalization, so that I can change
ScalarEvolutionNormalization to use SCEVRewriteVisitor in a next step.

This is a non-functional change, but _may_ improve performance in some
pathological cases, but that's unlikely.

llvm-svn: 300348
llvm/include/llvm/Analysis/ScalarEvolutionExpressions.h