[llvm] 179c801 - [LoopUnroll] Remove dead NextBlocks argument (NFC).
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Mon May 25 14:09:29 PDT 2020
Author: Florian Hahn
Date: 2020-05-25T22:09:11+01:00
New Revision: 179c80117c91fc3ba3079740a91de40d98b18916
URL: https://github.com/llvm/llvm-project/commit/179c80117c91fc3ba3079740a91de40d98b18916
DIFF: https://github.com/llvm/llvm-project/commit/179c80117c91fc3ba3079740a91de40d98b18916.diff
LOG: [LoopUnroll] Remove dead NextBlocks argument (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 c0177bdb3f6f..23b61c40a756 100644
--- a/llvm/lib/Transforms/Utils/LoopUnroll.cpp
+++ b/llvm/lib/Transforms/Utils/LoopUnroll.cpp
@@ -717,7 +717,6 @@ LoopUnrollResult llvm::UnrollLoop(Loop *L, UnrollLoopOptions ULO, LoopInfo *LI,
}
auto setDest = [LoopExit, ContinueOnTrue](BasicBlock *Src, BasicBlock *Dest,
- ArrayRef<BasicBlock *> NextBlocks,
BasicBlock *BlockInLoop,
bool NeedConditional) {
auto *Term = cast<BranchInst>(Src->getTerminator());
@@ -779,7 +778,7 @@ LoopUnrollResult llvm::UnrollLoop(Loop *L, UnrollLoopOptions ULO, LoopInfo *LI,
NeedConditional = false;
}
- setDest(Latches[i], Dest, Headers, Headers[i], NeedConditional);
+ setDest(Latches[i], Dest, Headers[i], NeedConditional);
}
} else {
// Setup headers to branch to their new successors in the unrolled
@@ -803,7 +802,7 @@ LoopUnrollResult llvm::UnrollLoop(Loop *L, UnrollLoopOptions ULO, LoopInfo *LI,
// unconditional branch for some iterations.
NeedConditional = false;
- setDest(Headers[i], Dest, Headers, HeaderSucc[i], NeedConditional);
+ setDest(Headers[i], Dest, HeaderSucc[i], NeedConditional);
}
// Set up latches to branch to the new header in the unrolled iterations or
More information about the llvm-commits
mailing list