Generalize ScalarEvolution to be able to analyze GEPs when
authorDan Gohman <gohman@apple.com>
Tue, 18 Aug 2009 16:46:41 +0000 (16:46 +0000)
committerDan Gohman <gohman@apple.com>
Tue, 18 Aug 2009 16:46:41 +0000 (16:46 +0000)
commitc40f17b08774c2dcc5787fd83241e3c64ba82974
treeae3c3455972b1fca1b2c67e7381205bba7dc2843
parent4d35fce60c5ac108d24428829e51a97eeca7836c
Generalize ScalarEvolution to be able to analyze GEPs when
TargetData is not present. It still uses TargetData when available.
This generalization also fixed some limitations in the TargetData
case; the attached testcase covers this.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79344 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/ScalarEvolution.h
include/llvm/Analysis/ScalarEvolutionExpander.h
include/llvm/Analysis/ScalarEvolutionExpressions.h
lib/Analysis/ScalarEvolution.cpp
lib/Analysis/ScalarEvolutionExpander.cpp
test/Transforms/IndVarSimplify/preserve-gep-nested.ll [new file with mode: 0644]