aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Analysis/IVUsers.h
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-01-19 21:55:32 +0000
committerDan Gohman <gohman@apple.com>2010-01-19 21:55:32 +0000
commitbafbbdde38dedf05b53b731cbc083b2c483ae64e (patch)
tree2efb27645d86d2be6e86295c36af8f5f260ff1f8 /include/llvm/Analysis/IVUsers.h
parent8e1aa8edec61d4361c66ad8483bb94d76e55dec8 (diff)
downloadexternal_llvm-bafbbdde38dedf05b53b731cbc083b2c483ae64e.zip
external_llvm-bafbbdde38dedf05b53b731cbc083b2c483ae64e.tar.gz
external_llvm-bafbbdde38dedf05b53b731cbc083b2c483ae64e.tar.bz2
Add a new helper function to IVUsers for returning the "canonical"
form of an expression. This is the expression without the post-increment adjustment made, which is useful in determining which registers will be used by the expansion. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93921 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis/IVUsers.h')
-rw-r--r--include/llvm/Analysis/IVUsers.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/Analysis/IVUsers.h b/include/llvm/Analysis/IVUsers.h
index fcd9caa..50f7d45 100644
--- a/include/llvm/Analysis/IVUsers.h
+++ b/include/llvm/Analysis/IVUsers.h
@@ -212,6 +212,11 @@ public:
/// value of the OperandValToReplace of the given IVStrideUse.
const SCEV *getReplacementExpr(const IVStrideUse &U) const;
+ /// getCanonicalExpr - Return a SCEV expression which computes the
+ /// value of the SCEV of the given IVStrideUse, ignoring the
+ /// isUseOfPostIncrementedValue flag.
+ const SCEV *getCanonicalExpr(const IVStrideUse &U) const;
+
void print(raw_ostream &OS, const Module* = 0) const;
/// dump - This method is used for debugging.