[llvm] [Vectorize] Remove a redundant declaration (NFC) (PR #167188)

Kazu Hirata via llvm-commits llvm-commits at lists.llvm.org
Sat Nov 8 15:04:44 PST 2025


https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/167188

EnableVPlanNativePath is declared in LoopVectorizationPlanner.h.

Identified with readability-redundant-declaration.


>From 437ecabbed33cbaae15c018cb14a98233033a800 Mon Sep 17 00:00:00 2001
From: Kazu Hirata <kazu at google.com>
Date: Sat, 8 Nov 2025 12:39:29 -0800
Subject: [PATCH] [Vectorize] Remove a redundant declaration (NFC)

EnableVPlanNativePath is declared in LoopVectorizationPlanner.h.

Identified with readability-redundant-declaration.
---
 llvm/lib/Transforms/Vectorize/VPlan.cpp | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/llvm/lib/Transforms/Vectorize/VPlan.cpp b/llvm/lib/Transforms/Vectorize/VPlan.cpp
index dd26a059d56ad..5e4303a4c5fff 100644
--- a/llvm/lib/Transforms/Vectorize/VPlan.cpp
+++ b/llvm/lib/Transforms/Vectorize/VPlan.cpp
@@ -52,10 +52,6 @@
 using namespace llvm;
 using namespace llvm::VPlanPatternMatch;
 
-namespace llvm {
-extern cl::opt<bool> EnableVPlanNativePath;
-}
-
 /// @{
 /// Metadata attribute names
 const char LLVMLoopVectorizeFollowupAll[] = "llvm.loop.vectorize.followup_all";



More information about the llvm-commits mailing list