[Vectorize] Fix an 'unused function' warning

This patch fixes:

  llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp:3917:13: error:
  unused function 'needToScheduleSingleInstruction'
  [-Werror,-Wunused-function]
This commit is contained in:
Kazu Hirata 2022-03-18 11:24:57 -07:00
parent 6cf1bd3ad3
commit 3e0f7c7881
1 changed files with 2 additions and 0 deletions

View File

@ -3914,6 +3914,7 @@ static LoadsState canVectorizeLoads(ArrayRef<Value *> VL, const Value *VL0,
/// \return true if the specified list of values has only one instruction that
/// requires scheduling, false otherwise.
#ifndef NDEBUG
static bool needToScheduleSingleInstruction(ArrayRef<Value *> VL) {
Value *NeedsScheduling = nullptr;
for (Value *V : VL) {
@ -3927,6 +3928,7 @@ static bool needToScheduleSingleInstruction(ArrayRef<Value *> VL) {
}
return NeedsScheduling;
}
#endif
void BoUpSLP::buildTree_rec(ArrayRef<Value *> VL, unsigned Depth,
const EdgeInfo &UserTreeIdx) {