SCEV: Allow simple AddRec * Parameter products in delinearization
authorTobias Grosser <tobias@grosser.es>
Mon, 12 Oct 2015 08:02:00 +0000 (08:02 +0000)
committerTobias Grosser <tobias@grosser.es>
Mon, 12 Oct 2015 08:02:00 +0000 (08:02 +0000)
commit87cb71d23ec5fcdf9d94727f4f917c8853eed2c6
tree2db640f076ea18661268de1b50a2662eda3c7752
parent0dcd516b64fa28ad83e5df4c71c5852cfe9d5683
SCEV: Allow simple AddRec * Parameter products in delinearization

This patch also allows the -delinearize pass to delinearize expressions that do
not have an outermost SCEVAddRec expression. The SCEV::delinearize
infrastructure allowed this since r240952, but the -delinearize pass was not
updated yet.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@250018 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/Delinearization.cpp
lib/Analysis/ScalarEvolution.cpp
test/Analysis/Delinearization/parameter_addrec_product.ll [new file with mode: 0644]