Revert "Recommit "[SCEV] Look through single value PHIs." (take 3)"
authorMartin Storsjö <martin@martin.st>
Wed, 5 Oct 2022 11:44:21 +0000 (14:44 +0300)
committerTobias Hieta <tobias@hieta.se>
Thu, 13 Oct 2022 08:03:51 +0000 (10:03 +0200)
commitf3c5289e78462fb96015f79c954d95a0d527ba55
treeb82d97b4067b56001bd7d7f4419faece1128f4bd
parent6599b6e5ae9ea95c857aff33b65f5e25e0bf8c27
Revert "Recommit "[SCEV] Look through single value PHIs." (take 3)"

This reverts commit 20d798bd47ec5191de1b2a8a031da06a04e612e1.

This commit caused crashes in some cases, see github issue #58152.
This is fixed on main, but backporting it requires multiple
nontrivial cherrypicks.

Updating llvm/test/Transforms/LoopVectorize/create-induction-resume.ll
with update_test_checks.py, so this isn't an exact automatic revert,
as that test case was added after the reverted commit.

This fixes #58152 for the release branch.
llvm/lib/Analysis/ScalarEvolution.cpp
llvm/test/Analysis/DependenceAnalysis/lcssa.ll
llvm/test/Analysis/ScalarEvolution/cycled_phis.ll
llvm/test/Analysis/ScalarEvolution/incorrect-exit-count.ll
llvm/test/Analysis/ScalarEvolution/solve-quadratic-i1.ll
llvm/test/Analysis/ScalarEvolution/solve-quadratic-overflow.ll
llvm/test/Analysis/ScalarEvolution/trivial-phis.ll
llvm/test/Transforms/LoopStrengthReduce/funclet.ll
llvm/test/Transforms/LoopVectorize/create-induction-resume.ll
llvm/test/Transforms/LoopVectorize/pr45259.ll