OSDN Git Service

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)
commite4f44dfa7398c7669169973c1509659c5af60108
tree43c001a5dd98482338dfb867e6457d3988acdd1a
parent2eb84fd76a47442ef9d92ba914dd4eb24d2fa26e
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@300348 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/ScalarEvolutionExpressions.h