diff options
author | Andrew Trick <atrick@apple.com> | 2012-01-07 01:12:09 +0000 |
---|---|---|
committer | Andrew Trick <atrick@apple.com> | 2012-01-07 01:12:09 +0000 |
commit | ee98aa87434d9d49a8e4dab41d873888ac9c4805 (patch) | |
tree | 1d7b661de824a316687c49d65a7e8cbe6b7c99c6 /include/llvm/Analysis/ScalarEvolutionExpander.h | |
parent | 5548755201a49bfe2af709ba0d0e7ba851cdb44f (diff) | |
download | llvm-ee98aa87434d9d49a8e4dab41d873888ac9c4805.tar.gz llvm-ee98aa87434d9d49a8e4dab41d873888ac9c4805.tar.bz2 llvm-ee98aa87434d9d49a8e4dab41d873888ac9c4805.tar.xz |
Extended replaceCongruentPhis to handle mixed phi types.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147707 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis/ScalarEvolutionExpander.h')
-rw-r--r-- | include/llvm/Analysis/ScalarEvolutionExpander.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/llvm/Analysis/ScalarEvolutionExpander.h b/include/llvm/Analysis/ScalarEvolutionExpander.h index cd7e7f1eb9..01a4b958cb 100644 --- a/include/llvm/Analysis/ScalarEvolutionExpander.h +++ b/include/llvm/Analysis/ScalarEvolutionExpander.h @@ -22,6 +22,8 @@ #include <set> namespace llvm { + class TargetLowering; + /// SCEVExpander - This class uses information about analyze scalars to /// rewrite expressions in canonical form. /// @@ -115,7 +117,8 @@ namespace llvm { /// replaceCongruentIVs - replace congruent phis with their most canonical /// representative. Return the number of phis eliminated. unsigned replaceCongruentIVs(Loop *L, const DominatorTree *DT, - SmallVectorImpl<WeakVH> &DeadInsts); + SmallVectorImpl<WeakVH> &DeadInsts, + const TargetLowering *TLI = NULL); /// expandCodeFor - Insert code to directly compute the specified SCEV /// expression into the program. The inserted code is inserted into the |