[llvm] 2ee8154 - [LV] Don't use getVPSingleValue for VPWidenMemoryInstRecipe (NFC).

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 5 05:54:10 PST 2022


Author: Florian Hahn
Date: 2022-01-05T13:51:50Z
New Revision: 2ee8154816b91201d606378a3e94a1b1bf9c0dd3

URL: https://github.com/llvm/llvm-project/commit/2ee8154816b91201d606378a3e94a1b1bf9c0dd3
DIFF: https://github.com/llvm/llvm-project/commit/2ee8154816b91201d606378a3e94a1b1bf9c0dd3.diff

LOG: [LV] Don't use getVPSingleValue for VPWidenMemoryInstRecipe (NFC).

VPWidenMemoryInstructionRecipe is a VPValue, so this can be passed
directly, instead of relying on getVPSingleValue.

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
index 7639b328da2e6..30d34083959d2 100644
--- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
+++ b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -10000,7 +10000,7 @@ void VPWidenMemoryInstructionRecipe::execute(VPTransformState &State) {
         NewLI = Builder.CreateVectorReverse(NewLI, "reverse");
     }
 
-    State.set(getVPSingleValue(), NewLI, Part);
+    State.set(this, NewLI, Part);
   }
 }
 


        


More information about the llvm-commits mailing list