Skip to content

Commit 6a030b3

Browse files
committed
[VPlan] Remove unused VPlanIngredient (NFC).
VPlanIngredient is not used anymore, remove it.
1 parent 94dc397 commit 6a030b3

File tree

2 files changed

+0
-30
lines changed

2 files changed

+0
-30
lines changed

llvm/lib/Transforms/Vectorize/VPlan.cpp

-17
Original file line numberDiff line numberDiff line change
@@ -1363,23 +1363,6 @@ void VPlanPrinter::dumpRegion(const VPRegionBlock *Region) {
13631363
dumpEdges(Region);
13641364
}
13651365

1366-
void VPlanIngredient::print(raw_ostream &O) const {
1367-
if (auto *Inst = dyn_cast<Instruction>(V)) {
1368-
if (!Inst->getType()->isVoidTy()) {
1369-
Inst->printAsOperand(O, false);
1370-
O << " = ";
1371-
}
1372-
O << Inst->getOpcodeName() << " ";
1373-
unsigned E = Inst->getNumOperands();
1374-
if (E > 0) {
1375-
Inst->getOperand(0)->printAsOperand(O, false);
1376-
for (unsigned I = 1; I < E; ++I)
1377-
Inst->getOperand(I)->printAsOperand(O << ", ", false);
1378-
}
1379-
} else // !Inst
1380-
V->printAsOperand(O, false);
1381-
}
1382-
13831366
#endif
13841367

13851368
/// Returns true if there is a vector loop region and \p VPV is defined in a

llvm/lib/Transforms/Vectorize/VPlan.h

-13
Original file line numberDiff line numberDiff line change
@@ -3706,19 +3706,6 @@ class VPlan {
37063706
};
37073707

37083708
#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
3709-
struct VPlanIngredient {
3710-
const Value *V;
3711-
3712-
VPlanIngredient(const Value *V) : V(V) {}
3713-
3714-
void print(raw_ostream &O) const;
3715-
};
3716-
3717-
inline raw_ostream &operator<<(raw_ostream &OS, const VPlanIngredient &I) {
3718-
I.print(OS);
3719-
return OS;
3720-
}
3721-
37223709
inline raw_ostream &operator<<(raw_ostream &OS, const VPlan &Plan) {
37233710
Plan.print(OS);
37243711
return OS;

0 commit comments

Comments
 (0)