summaryrefslogtreecommitdiff
path: root/include/llvm/Analysis/ValueTracking.h
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-11-18 00:58:27 +0000
committerDan Gohman <gohman@apple.com>2009-11-18 00:58:27 +0000
commit3dbb9e64d6e9d1e8bf16f75ebe4fe59ffdf93dd3 (patch)
treeeb1ba91cca452635f06247f3af86ae531866772e /include/llvm/Analysis/ValueTracking.h
parent5052c1547ef75f401fd397084831e0bb15311b09 (diff)
downloadllvm-3dbb9e64d6e9d1e8bf16f75ebe4fe59ffdf93dd3.tar.gz
llvm-3dbb9e64d6e9d1e8bf16f75ebe4fe59ffdf93dd3.tar.bz2
llvm-3dbb9e64d6e9d1e8bf16f75ebe4fe59ffdf93dd3.tar.xz
Simplify ComputeMultiple so that it doesn't depend on TargetData.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89175 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis/ValueTracking.h')
-rw-r--r--include/llvm/Analysis/ValueTracking.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/Analysis/ValueTracking.h b/include/llvm/Analysis/ValueTracking.h
index a7a078fa35..038d442cc6 100644
--- a/include/llvm/Analysis/ValueTracking.h
+++ b/include/llvm/Analysis/ValueTracking.h
@@ -68,8 +68,8 @@ namespace llvm {
/// Multiple. If unsuccessful, it returns false. Also, if V can be
/// simplified to an integer, then the simplified V is returned in Val. Look
/// through sext only if LookThroughSExt=true.
- bool ComputeMultiple(Value *V, unsigned Base, Value *&Multiple, APInt &Val,
- bool LookThroughSExt = false, const TargetData *TD = 0,
+ bool ComputeMultiple(Value *V, unsigned Base, Value *&Multiple,
+ bool LookThroughSExt = false,
unsigned Depth = 0);
/// CannotBeNegativeZero - Return true if we can prove that the specified FP