[LCSSA] Don't invalidate entire loop in SCEV
authorNikita Popov <npopov@redhat.com>
Thu, 27 Apr 2023 09:36:21 +0000 (11:36 +0200)
committerNikita Popov <npopov@redhat.com>
Fri, 28 Apr 2023 10:17:26 +0000 (12:17 +0200)
commit0aed0dbec2434d9d1a41266be009e56cc964633b
tree4cea585999bae56a5946d4fa399a8d1e1b07fa0b
parent575fdea70a86f68b0d303a9a3273fc47f810628a
[LCSSA] Don't invalidate entire loop in SCEV

We already invalidate each individual instruction for which LCSSA
is formed in formLCSSAForInstructions(), so I don't see a reason
why we would need to invalidate the entire loop on top of that.

I believe we also no longer need the instruction-level invalidation
now that SCEV looks through LCSSA phis, but I'll leave that for a
separate patch, as it's less obvious.

Differential Revision: https://reviews.llvm.org/D149331
llvm/lib/Transforms/Utils/LCSSA.cpp