[llvm] [LoopVectorize][NFC] Remove unused variable in addUsersInExitBlocks (PR #124553)
David Sherwood via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 27 06:48:32 PST 2025
https://github.com/david-arm created https://github.com/llvm/llvm-project/pull/124553
We were allocating a VPTypeAnalysis object on the stack,
but never using it for anything.
>From 847fd4f99a60d9da542bfd01c6b785d177753563 Mon Sep 17 00:00:00 2001
From: David Sherwood <david.sherwood at arm.com>
Date: Mon, 27 Jan 2025 14:46:46 +0000
Subject: [PATCH] [LoopVectorize][NFC] Remove unused variable in
addUsersInExitBlocks
We were allocating a VPTypeAnalysis object on the stack, but never
using it for anything.
---
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp | 1 -
1 file changed, 1 deletion(-)
diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
index 3a4f637f177e19..a36688b0534e8d 100644
--- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
+++ b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -9073,7 +9073,6 @@ addUsersInExitBlocks(VPlan &Plan,
auto *MiddleVPBB = Plan.getMiddleBlock();
VPBuilder B(MiddleVPBB, MiddleVPBB->getFirstNonPhi());
- VPTypeAnalysis TypeInfo(Plan.getCanonicalIV()->getScalarType());
// Introduce extract for exiting values and update the VPIRInstructions
// modeling the corresponding LCSSA phis.
More information about the llvm-commits
mailing list