[llvm] 8b86752 - [VPlan] Remove unused VPInstruction constructor. (NFC)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 24 06:08:48 PST 2021


Author: Florian Hahn
Date: 2021-11-24T14:06:50Z
New Revision: 8b86752c60f1d18f367fdd29f47bc3bd8646bbd2

URL: https://github.com/llvm/llvm-project/commit/8b86752c60f1d18f367fdd29f47bc3bd8646bbd2
DIFF: https://github.com/llvm/llvm-project/commit/8b86752c60f1d18f367fdd29f47bc3bd8646bbd2.diff

LOG: [VPlan] Remove unused VPInstruction constructor. (NFC)

VPInstruction inherits from VPValue, so the constructor taking
ArrayRef<VPValue*> covers all cases that would be covered by the removed
constructor.

Added: 
    

Modified: 
    llvm/lib/Transforms/Vectorize/VPlan.h

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Transforms/Vectorize/VPlan.h b/llvm/lib/Transforms/Vectorize/VPlan.h
index 9e2bd0540afb6..810dd5030f950 100644
--- a/llvm/lib/Transforms/Vectorize/VPlan.h
+++ b/llvm/lib/Transforms/Vectorize/VPlan.h
@@ -808,13 +808,6 @@ class VPInstruction : public VPRecipeBase, public VPValue {
       : VPRecipeBase(VPRecipeBase::VPInstructionSC, Operands),
         VPValue(VPValue::VPVInstructionSC, nullptr, this), Opcode(Opcode) {}
 
-  VPInstruction(unsigned Opcode, ArrayRef<VPInstruction *> Operands)
-      : VPRecipeBase(VPRecipeBase::VPInstructionSC, {}),
-        VPValue(VPValue::VPVInstructionSC, nullptr, this), Opcode(Opcode) {
-    for (auto *I : Operands)
-      addOperand(I->getVPSingleValue());
-  }
-
   VPInstruction(unsigned Opcode, std::initializer_list<VPValue *> Operands)
       : VPInstruction(Opcode, ArrayRef<VPValue *>(Operands)) {}
 


        


More information about the llvm-commits mailing list