Skip to content

Commit 8c2bcfe

Browse files
committed
!fixup remove opcode argument
1 parent b354f58 commit 8c2bcfe

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

llvm/lib/Transforms/Vectorize/LoopVectorizationPlanner.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,7 @@ class VPBuilder {
252252

253253
VPInstruction *createScalarPhi(ArrayRef<VPValue *> IncomingValues,
254254
DebugLoc DL, const Twine &Name = "") {
255-
return tryInsertInstruction(
256-
new VPPhi(Instruction::PHI, IncomingValues, DL, Name));
255+
return tryInsertInstruction(new VPPhi(IncomingValues, DL, Name));
257256
}
258257

259258
/// Convert the input value \p Current to the corresponding value of an

llvm/lib/Transforms/Vectorize/VPlan.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1144,9 +1144,8 @@ class VPPhiAccessors {
11441144
};
11451145

11461146
struct VPPhi : public VPInstruction, public VPPhiAccessors {
1147-
VPPhi(unsigned Opcode, ArrayRef<VPValue *> Operands, DebugLoc DL,
1148-
const Twine &Name = "")
1149-
: VPInstruction(Opcode, Operands, DL, Name) {}
1147+
VPPhi(ArrayRef<VPValue *> Operands, DebugLoc DL, const Twine &Name = "")
1148+
: VPInstruction(Instruction::PHI, Operands, DL, Name) {}
11501149

11511150
static inline bool classof(const VPRecipeBase *U) {
11521151
auto *R = dyn_cast<VPInstruction>(U);

0 commit comments

Comments
 (0)