summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Vectorize/LoopVectorize.h
diff options
context:
space:
mode:
authorNadav Rotem <nrotem@apple.com>2012-12-13 00:21:03 +0000
committerNadav Rotem <nrotem@apple.com>2012-12-13 00:21:03 +0000
commit36510f7194fe7dee32f3ed72c0bfee77ec3122eb (patch)
tree487260dc93e224d08fd6388f6b6298f3ceea608f /llvm/lib/Transforms/Vectorize/LoopVectorize.h
parente28ae30a8ee9ceb7f3b02f16a821f26ea97cacdf (diff)
downloadbcm5719-llvm-36510f7194fe7dee32f3ed72c0bfee77ec3122eb.tar.gz
bcm5719-llvm-36510f7194fe7dee32f3ed72c0bfee77ec3122eb.zip
Teach the cost model about the optimization in r169904: Truncation of induction variables costs the same as scalar trunc.
llvm-svn: 170051
Diffstat (limited to 'llvm/lib/Transforms/Vectorize/LoopVectorize.h')
-rw-r--r--llvm/lib/Transforms/Vectorize/LoopVectorize.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.h b/llvm/lib/Transforms/Vectorize/LoopVectorize.h
index e5a52596059..e5ef29052e2 100644
--- a/llvm/lib/Transforms/Vectorize/LoopVectorize.h
+++ b/llvm/lib/Transforms/Vectorize/LoopVectorize.h
@@ -320,6 +320,9 @@ public:
/// Returns the induction variables found in the loop.
InductionList *getInductionVars() { return &Inductions; }
+ /// Returns True if V is an induction variable in this loop.
+ bool isInductionVariable(const Value *V);
+
/// Return true if the block BB needs to be predicated in order for the loop
/// to be vectorized.
bool blockNeedsPredication(BasicBlock *BB);
OpenPOWER on IntegriCloud