[llvm] a4b924a - Kill a variable which is unused after cddcc4cf [nfc]
Philip Reames via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 3 14:39:10 PDT 2021
Author: Philip Reames
Date: 2021-06-03T14:38:57-07:00
New Revision: a4b924a017dba3e5f891ef38e07a7a80da65a8b8
URL: https://github.com/llvm/llvm-project/commit/a4b924a017dba3e5f891ef38e07a7a80da65a8b8
DIFF: https://github.com/llvm/llvm-project/commit/a4b924a017dba3e5f891ef38e07a7a80da65a8b8.diff
LOG: Kill a variable which is unused after cddcc4cf [nfc]
Added:
Modified:
llvm/lib/Transforms/Utils/LoopUnroll.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Utils/LoopUnroll.cpp b/llvm/lib/Transforms/Utils/LoopUnroll.cpp
index 76036dc2234a..fe0833aee69c 100644
--- a/llvm/lib/Transforms/Utils/LoopUnroll.cpp
+++ b/llvm/lib/Transforms/Utils/LoopUnroll.cpp
@@ -417,7 +417,6 @@ LoopUnrollResult llvm::UnrollLoop(Loop *L, UnrollLoopOptions ULO, LoopInfo *LI,
// through another exit first.
const unsigned ExactTripCount = ExitingBI ?
SE->getSmallConstantTripCount(L,ExitingBI->getParent()) : 0;
- const bool ExactUnroll = (ExactTripCount && ExactTripCount == ULO.Count);
// Loops containing convergent instructions must have a count that divides
// their TripMultiple.
More information about the llvm-commits
mailing list