[llvm] 5ab86ef - [VPlan] Remove unused OverrideAllowed arg from getVPValue (NFCI).

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 6 12:14:39 PST 2024


Author: Florian Hahn
Date: 2024-03-06T20:14:25Z
New Revision: 5ab86ef7c1bf66e7ae3b6fed97084715484c34e3

URL: https://github.com/llvm/llvm-project/commit/5ab86ef7c1bf66e7ae3b6fed97084715484c34e3
DIFF: https://github.com/llvm/llvm-project/commit/5ab86ef7c1bf66e7ae3b6fed97084715484c34e3.diff

LOG: [VPlan] Remove unused OverrideAllowed arg from getVPValue (NFCI).

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 bc499400bced84..af6d0081bffebc 100644
--- a/llvm/lib/Transforms/Vectorize/VPlan.h
+++ b/llvm/lib/Transforms/Vectorize/VPlan.h
@@ -2992,13 +2992,11 @@ class VPlan {
     Value2VPValue[V] = VPV;
   }
 
-  /// Returns the VPValue for \p V. \p OverrideAllowed can be used to disable
-  ///   /// checking whether it is safe to query VPValues using IR Values.
-  VPValue *getVPValue(Value *V, bool OverrideAllowed = false) {
+  /// Returns the VPValue for \p V.
+  VPValue *getVPValue(Value *V) {
     assert(V && "Trying to get the VPValue of a null Value");
     assert(Value2VPValue.count(V) && "Value does not exist in VPlan");
-    assert((Value2VPValueEnabled || OverrideAllowed ||
-            Value2VPValue[V]->isLiveIn()) &&
+    assert((Value2VPValueEnabled || Value2VPValue[V]->isLiveIn()) &&
            "Value2VPValue mapping may be out of date!");
     return Value2VPValue[V];
   }


        


More information about the llvm-commits mailing list