aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/SmallVector.cpp
diff options
context:
space:
mode:
authorRoman Lebedev <lebedev.ri@gmail.com>2021-08-30 12:27:41 +0300
committerRoman Lebedev <lebedev.ri@gmail.com>2021-08-30 12:28:24 +0300
commit795d142d237e0a06c136886a6dd9c49235c37295 (patch)
tree5573117a52fc18909ba0eb83886b3988c3d3be19 /llvm/lib/Support/SmallVector.cpp
parentb1b68b4c0190b7fc7f0ebe823277966056b39494 (diff)
downloadllvm-795d142d237e0a06c136886a6dd9c49235c37295.zip
llvm-795d142d237e0a06c136886a6dd9c49235c37295.tar.gz
llvm-795d142d237e0a06c136886a6dd9c49235c37295.tar.bz2
[NFCI][IndVars] rewriteLoopExitValues(): don't expand SCEV's until needed
Previously, we'd expand *ALL* the SCEV's eagerly, because we needed to check with `isValidRewrite()`, and discard bad rewrite candidates, but now that we do not do that, we also don't need to always expand. In particular, this avoids expanding potentially-huge SCEV's that we would discard anyways because they are high-cost and we aren't rewriting aggressively.
Diffstat (limited to 'llvm/lib/Support/SmallVector.cpp')
0 files changed, 0 insertions, 0 deletions