[VPlan] Drop unnecessary uses of getVPSingleValue (NFC).
authorFlorian Hahn <flo@fhahn.com>
Mon, 17 Jan 2022 13:27:33 +0000 (13:27 +0000)
committerFlorian Hahn <flo@fhahn.com>
Mon, 17 Jan 2022 13:27:33 +0000 (13:27 +0000)
llvm/lib/Transforms/Vectorize/VPlan.cpp

index 6bd6613..76e5c97 100644 (file)
@@ -1352,7 +1352,7 @@ void VPWidenMemoryInstructionRecipe::print(raw_ostream &O, const Twine &Indent,
   O << Indent << "WIDEN ";
 
   if (!isStore()) {
-    getVPSingleValue()->printAsOperand(O, SlotTracker);
+    printAsOperand(O, SlotTracker);
     O << " = ";
   }
   O << Instruction::getOpcodeName(Ingredient.getOpcode()) << " ";
@@ -1375,7 +1375,7 @@ void VPCanonicalIVPHIRecipe::execute(VPTransformState &State) {
 void VPCanonicalIVPHIRecipe::print(raw_ostream &O, const Twine &Indent,
                                    VPSlotTracker &SlotTracker) const {
   O << Indent << "EMIT ";
-  getVPSingleValue()->printAsOperand(O, SlotTracker);
+  printAsOperand(O, SlotTracker);
   O << " = CANONICAL-INDUCTION";
 }
 #endif