Recommit "[SCEV] Look through single value PHIs."
authorFlorian Hahn <flo@fhahn.com>
Mon, 21 Sep 2020 10:03:27 +0000 (11:03 +0100)
committerFlorian Hahn <flo@fhahn.com>
Mon, 21 Sep 2020 10:59:50 +0000 (11:59 +0100)
commit11dccf8d3aa5d55210f8b886fb21926c7a8353ca
tree012714c23923f4028b145153d81d2a73057ab880
parent2d76274b99f2c09cdd94863d6e2e48a06f863f2a
Recommit "[SCEV] Look through single value PHIs."

This commit was originally because it was suspected to cause a crash,
but a reproducer did not surface.

A crash that was exposed by this change was fixed in 1d8f2e52925b.

This reverts the revert commit 0581c0b0eeba03da590d1176a4580cf9b9e8d1e3.
llvm/lib/Analysis/ScalarEvolution.cpp
llvm/test/Analysis/ScalarEvolution/solve-quadratic-i1.ll
llvm/test/Analysis/ScalarEvolution/solve-quadratic-overflow.ll
llvm/test/Transforms/LoopStrengthReduce/funclet.ll