aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Hahn <flo@fhahn.com>2024-03-06 20:10:22 +0000
committerFlorian Hahn <flo@fhahn.com>2024-03-06 20:14:25 +0000
commit5ab86ef7c1bf66e7ae3b6fed97084715484c34e3 (patch)
treebc350d7d4e18ce77e4bc69db4911ff7ed3a9f1bc
parent2b184c8f64b577a4cef2c2abde2dceaeece4874d (diff)
downloadllvm-5ab86ef7c1bf66e7ae3b6fed97084715484c34e3.zip
llvm-5ab86ef7c1bf66e7ae3b6fed97084715484c34e3.tar.gz
llvm-5ab86ef7c1bf66e7ae3b6fed97084715484c34e3.tar.bz2
[VPlan] Remove unused OverrideAllowed arg from getVPValue (NFCI).
-rw-r--r--llvm/lib/Transforms/Vectorize/VPlan.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/llvm/lib/Transforms/Vectorize/VPlan.h b/llvm/lib/Transforms/Vectorize/VPlan.h
index bc49940..af6d008 100644
--- a/llvm/lib/Transforms/Vectorize/VPlan.h
+++ b/llvm/lib/Transforms/Vectorize/VPlan.h
@@ -2992,13 +2992,11 @@ public:
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];
}