[LoopSimplify] Reduce amount of redundant SCEV invalidation (NFCI)
authorNikita Popov <npopov@redhat.com>
Thu, 4 May 2023 13:29:30 +0000 (15:29 +0200)
committerNikita Popov <npopov@redhat.com>
Fri, 5 May 2023 08:03:42 +0000 (10:03 +0200)
commit00ff746f6e81b6be5886160327805020c39e4ce3
tree89ea6d477122e7ed50e273e7d953c2941785d4af
parent29712ccda62012e615b8c55bc6a3fa7454c10c42
[LoopSimplify] Reduce amount of redundant SCEV invalidation (NFCI)

We are simplifying the loop and all its children. Each time, we
invalidate the top-most loop. The top-most loop is going to be
the same every time. The cost of SCEV invalidation is largely
independent from how data about the loop is actually cached, so
we should avoid redundant invalidations.
llvm/lib/Transforms/Utils/LoopSimplify.cpp