From 81896f88cef4cfe1cf982250601a0c954344e1e8 Mon Sep 17 00:00:00 2001 From: Jordan Rupprecht Date: Fri, 11 Nov 2022 07:51:40 -0800 Subject: [PATCH] [NFC] Remove unused OrigLoopID vars --- llvm/lib/Transforms/Vectorize/LoopVectorize.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp index 41b12a6..153b102 100644 --- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp +++ b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp @@ -3269,9 +3269,6 @@ InnerLoopVectorizer::createVectorizedLoopSkeleton() { ... */ - // Get the metadata of the original loop before it gets modified. - MDNode *OrigLoopID = OrigLoop->getLoopID(); - // Workaround! Compute the trip count of the original loop and cache it // before we start modifying the CFG. This code has a systemic problem // wherein it tries to run analysis over partially constructed IR; this is @@ -7711,8 +7708,6 @@ Value *InnerLoopUnroller::getBroadcastInstrs(Value *V) { return V; } /// depicted in https://llvm.org/docs/Vectorizers.html#epilogue-vectorization. std::pair EpilogueVectorizerMainLoop::createEpilogueVectorizedLoopSkeleton() { - MDNode *OrigLoopID = OrigLoop->getLoopID(); - // Workaround! Compute the trip count of the original loop and cache it // before we start modifying the CFG. This code has a systemic problem // wherein it tries to run analysis over partially constructed IR; this is @@ -7839,7 +7834,6 @@ EpilogueVectorizerMainLoop::emitIterationCountCheck(BasicBlock *Bypass, /// depicted in https://llvm.org/docs/Vectorizers.html#epilogue-vectorization. std::pair EpilogueVectorizerEpilogueLoop::createEpilogueVectorizedLoopSkeleton() { - MDNode *OrigLoopID = OrigLoop->getLoopID(); createVectorLoopSkeleton("vec.epilog."); // Now, compare the remaining count and if there aren't enough iterations to -- 2.7.4