Skip to content

Commit e156d1e

Browse files
authored
[VPlan] Strip dead code, cleanup includes in header (NFC) (#162641)
1 parent f435930 commit e156d1e

File tree

1 file changed

+2
-11
lines changed
  • llvm/lib/Transforms/Vectorize

1 file changed

+2
-11
lines changed

llvm/lib/Transforms/Vectorize/VPlan.h

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,9 @@
2424
#ifndef LLVM_TRANSFORMS_VECTORIZE_VPLAN_H
2525
#define LLVM_TRANSFORMS_VECTORIZE_VPLAN_H
2626

27-
#include "VPlanAnalysis.h"
2827
#include "VPlanValue.h"
2928
#include "llvm/ADT/DenseMap.h"
30-
#include "llvm/ADT/SmallBitVector.h"
3129
#include "llvm/ADT/SmallPtrSet.h"
32-
#include "llvm/ADT/SmallSet.h"
3330
#include "llvm/ADT/SmallVector.h"
3431
#include "llvm/ADT/Twine.h"
3532
#include "llvm/ADT/ilist.h"
@@ -41,10 +38,11 @@
4138
#include "llvm/IR/Operator.h"
4239
#include "llvm/Support/Compiler.h"
4340
#include "llvm/Support/InstructionCost.h"
44-
#include <algorithm>
4541
#include <cassert>
4642
#include <cstddef>
43+
#include <functional>
4744
#include <string>
45+
#include <utility>
4846

4947
namespace llvm {
5048

@@ -346,13 +344,6 @@ class LLVM_ABI_FOR_TEST VPBlockBase {
346344
/// Return the cost of the block.
347345
virtual InstructionCost cost(ElementCount VF, VPCostContext &Ctx) = 0;
348346

349-
/// Return true if it is legal to hoist instructions into this block.
350-
bool isLegalToHoistInto() {
351-
// There are currently no constraints that prevent an instruction to be
352-
// hoisted into a VPBlockBase.
353-
return true;
354-
}
355-
356347
#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
357348
void printAsOperand(raw_ostream &OS, bool PrintType = false) const {
358349
OS << getName();

0 commit comments

Comments
 (0)