aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Analysis/ScalarEvolution.h
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-01-19 22:21:27 +0000
committerDan Gohman <gohman@apple.com>2010-01-19 22:21:27 +0000
commit2014cc0739850a01938ef5d7472d38ae6fe20be6 (patch)
tree92f72cd88c47f5f105d71f10ed1e1b9cfd2471d1 /include/llvm/Analysis/ScalarEvolution.h
parent4e789288818a1573f38ae5e20b5713635a90491a (diff)
downloadexternal_llvm-2014cc0739850a01938ef5d7472d38ae6fe20be6.zip
external_llvm-2014cc0739850a01938ef5d7472d38ae6fe20be6.tar.gz
external_llvm-2014cc0739850a01938ef5d7472d38ae6fe20be6.tar.bz2
Give ScalarEvolution access to the DominatorTree. It'll need this
to make more intellegent AddRec folding decisions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93930 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis/ScalarEvolution.h')
-rw-r--r--include/llvm/Analysis/ScalarEvolution.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/Analysis/ScalarEvolution.h b/include/llvm/Analysis/ScalarEvolution.h
index 6f57c74..9072a8f 100644
--- a/include/llvm/Analysis/ScalarEvolution.h
+++ b/include/llvm/Analysis/ScalarEvolution.h
@@ -181,6 +181,10 @@ namespace llvm {
///
TargetData *TD;
+ /// DT - The dominator tree.
+ ///
+ DominatorTree *DT;
+
/// CouldNotCompute - This SCEV is used to represent unknown trip
/// counts and things.
SCEVCouldNotCompute CouldNotCompute;