[llvm] 3678ad8 - [NFC] Remove unused variable
Max Kazantsev via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 29 23:33:57 PDT 2020
Author: Max Kazantsev
Date: 2020-07-30T13:32:15+07:00
New Revision: 3678ad88a6a1cbc8f5171519666b10e8997289dc
URL: https://github.com/llvm/llvm-project/commit/3678ad88a6a1cbc8f5171519666b10e8997289dc
DIFF: https://github.com/llvm/llvm-project/commit/3678ad88a6a1cbc8f5171519666b10e8997289dc.diff
LOG: [NFC] Remove unused variable
Added:
Modified:
llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp b/llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp
index 6c6d6ca9cf65..c7d23c953291 100644
--- a/llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp
+++ b/llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp
@@ -2844,7 +2844,6 @@ static bool unswitchLoop(Loop &L, DominatorTree &DT, LoopInfo &LI,
ScalarEvolution *SE, MemorySSAUpdater *MSSAU) {
assert(L.isRecursivelyLCSSAForm(DT, LI) &&
"Loops must be in LCSSA form before unswitching.");
- bool Changed = false;
// Must be in loop simplified form: we need a preheader and dedicated exits.
if (!L.isLoopSimplifyForm())
@@ -2876,7 +2875,7 @@ static bool unswitchLoop(Loop &L, DominatorTree &DT, LoopInfo &LI,
return true;
// No other opportunities to unswitch.
- return Changed;
+ return false;
}
PreservedAnalyses SimpleLoopUnswitchPass::run(Loop &L, LoopAnalysisManager &AM,
More information about the llvm-commits
mailing list