[llvm] 500fe60 - [VPlan] Drop unnecessary uses of getVPSingleValue (NFC).

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 17 05:27:44 PST 2022


Author: Florian Hahn
Date: 2022-01-17T13:27:33Z
New Revision: 500fe6095702459c7b000a344b5717c9700fda4a

URL: https://github.com/llvm/llvm-project/commit/500fe6095702459c7b000a344b5717c9700fda4a
DIFF: https://github.com/llvm/llvm-project/commit/500fe6095702459c7b000a344b5717c9700fda4a.diff

LOG: [VPlan] Drop unnecessary uses of getVPSingleValue (NFC).

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Transforms/Vectorize/VPlan.cpp b/llvm/lib/Transforms/Vectorize/VPlan.cpp
index 6bd6613a20aab..76e5c9775ffbe 100644
--- a/llvm/lib/Transforms/Vectorize/VPlan.cpp
+++ b/llvm/lib/Transforms/Vectorize/VPlan.cpp
@@ -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


        


More information about the llvm-commits mailing list