diff options
author | Nadav Rotem <nrotem@apple.com> | 2013-07-22 05:19:22 +0000 |
---|---|---|
committer | Nadav Rotem <nrotem@apple.com> | 2013-07-22 05:19:22 +0000 |
commit | d7ff88a8d954746d5d26ddadd9ac2d7722766ed2 (patch) | |
tree | 140770417ce9ddb20503b331b90f25df53aa2e57 /llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp | |
parent | e3cea80ddb5da0cd8e44a93fbf90bbdecbd4d0ba (diff) | |
download | bcm5719-llvm-d7ff88a8d954746d5d26ddadd9ac2d7722766ed2.tar.gz bcm5719-llvm-d7ff88a8d954746d5d26ddadd9ac2d7722766ed2.zip |
Delete unused helper functions.
llvm-svn: 186808
Diffstat (limited to 'llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp')
-rw-r--r-- | llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp index c1ba57b55c9..35022220694 100644 --- a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp +++ b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp @@ -301,12 +301,6 @@ private: /// \returns the Instrucion in the bundle \p VL. Instruction *getLastInstruction(ArrayRef<Value *> VL); - /// \returns the Instruction at index \p Index which is in Block \p BB. - Instruction *getInstructionForIndex(unsigned Index, BasicBlock *BB); - - /// \returns the index of the first User of \p VL. - int getFirstUserIndex(ArrayRef<Value *> VL); - /// \returns a vector from a collection of scalars in \p VL. Value *Gather(ArrayRef<Value *> VL, VectorType *Ty); @@ -1093,32 +1087,6 @@ Instruction *BoUpSLP::getLastInstruction(ArrayRef<Value *> VL) { return I; } -Instruction *BoUpSLP::getInstructionForIndex(unsigned Index, BasicBlock *BB) { - BlockNumbering &BN = BlocksNumbers[BB]; - return BN.getInstruction(Index); -} - -int BoUpSLP::getFirstUserIndex(ArrayRef<Value *> VL) { - BasicBlock *BB = getSameBlock(VL); - assert(BB && "All instructions must come from the same block"); - BlockNumbering &BN = BlocksNumbers[BB]; - - // Find the first user of the values. - int FirstUser = BN.getIndex(BB->getTerminator()); - for (unsigned i = 0, e = VL.size(); i < e; ++i) { - for (Value::use_iterator U = VL[i]->use_begin(), UE = VL[i]->use_end(); - U != UE; ++U) { - Instruction *Instr = dyn_cast<Instruction>(*U); - - if (!Instr || Instr->getParent() != BB) - continue; - - FirstUser = std::min(FirstUser, BN.getIndex(Instr)); - } - } - return FirstUser; -} - Value *BoUpSLP::Gather(ArrayRef<Value *> VL, VectorType *Ty) { Value *Vec = UndefValue::get(Ty); // Generate the 'InsertElement' instruction. |