[PATCH] D76374: [VPlan] Record underlying value for VPValues created by addVPValue (NFC).

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 18 14:41:29 PDT 2020


This revision was automatically updated to reflect the committed changes.
Closed by commit rG00c1cd193497: [VPlan] Record underlying value for VPValues created by addVPValue (NFC). (authored by fhahn).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D76374/new/

https://reviews.llvm.org/D76374

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


Index: llvm/lib/Transforms/Vectorize/VPlan.h
===================================================================
--- llvm/lib/Transforms/Vectorize/VPlan.h
+++ llvm/lib/Transforms/Vectorize/VPlan.h
@@ -1488,7 +1488,7 @@
   void addVPValue(Value *V) {
     assert(V && "Trying to add a null Value to VPlan");
     assert(!Value2VPValue.count(V) && "Value already exists in VPlan");
-    Value2VPValue[V] = new VPValue();
+    Value2VPValue[V] = new VPValue(V);
   }
 
   VPValue *getVPValue(Value *V) {


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D76374.251176.patch
Type: text/x-patch
Size: 501 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200318/fba9f26c/attachment.bin>


More information about the llvm-commits mailing list