[llvm] 31b79b8 - Revert "Remove unused variable (-Wunused)"

David Blaikie via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 5 20:44:09 PST 2022


Author: David Blaikie
Date: 2022-01-05T20:43:30-08:00
New Revision: 31b79b86ee3defa07f1aa4fa5a10d2389ec527dd

URL: https://github.com/llvm/llvm-project/commit/31b79b86ee3defa07f1aa4fa5a10d2389ec527dd
DIFF: https://github.com/llvm/llvm-project/commit/31b79b86ee3defa07f1aa4fa5a10d2389ec527dd.diff

LOG: Revert "Remove unused variable (-Wunused)"

Patch that removed the use of this variable was  reverted in
8ade3d43a3e48eb739c9db2f38b618fa213f0546

This reverts commit 3988a06d86e1a14dfd5f5fdae84ddbf928e85dab.

Added: 
    

Modified: 
    llvm/lib/Transforms/Scalar/LoopInterchange.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Transforms/Scalar/LoopInterchange.cpp b/llvm/lib/Transforms/Scalar/LoopInterchange.cpp
index 08c66ee1b54af..75b52a431e32c 100644
--- a/llvm/lib/Transforms/Scalar/LoopInterchange.cpp
+++ b/llvm/lib/Transforms/Scalar/LoopInterchange.cpp
@@ -793,6 +793,7 @@ bool LoopInterchangeLegality::findInductionAndReductions(
 // This function indicates the current limitations in the transform as a result
 // of which we do not proceed.
 bool LoopInterchangeLegality::currentLimitations() {
+  BasicBlock *InnerLoopPreHeader = InnerLoop->getLoopPreheader();
   BasicBlock *InnerLoopLatch = InnerLoop->getLoopLatch();
 
   // transform currently expects the loop latches to also be the exiting


        


More information about the llvm-commits mailing list