diff options
author | Kazu Hirata <kazu@google.com> | 2024-08-03 15:33:08 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-03 15:33:08 -0700 |
commit | b7146aed5b99e6f858f6c7243a2a38406bb41d1c (patch) | |
tree | 18f5056511326ee1039e9c1ee7c46b859d98c289 /llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp | |
parent | 1a9acd786d493b00c08d1611f51420d421b74cf1 (diff) | |
download | llvm-b7146aed5b99e6f858f6c7243a2a38406bb41d1c.zip llvm-b7146aed5b99e6f858f6c7243a2a38406bb41d1c.tar.gz llvm-b7146aed5b99e6f858f6c7243a2a38406bb41d1c.tar.bz2 |
[Transforms] Construct SmallVector with ArrayRef (NFC) (#101851)
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp b/llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp index 56aa96e..2d74b2b 100644 --- a/llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp +++ b/llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp @@ -971,8 +971,7 @@ bool llvm::UnrollRuntimeLoopRemainder( // (e.g. breakLoopBackedgeAndSimplify) and reused in loop-deletion. BasicBlock *RemainderLatch = remainderLoop->getLoopLatch(); assert(RemainderLatch); - SmallVector<BasicBlock*> RemainderBlocks(remainderLoop->getBlocks().begin(), - remainderLoop->getBlocks().end()); + SmallVector<BasicBlock *> RemainderBlocks(remainderLoop->getBlocks()); breakLoopBackedge(remainderLoop, *DT, *SE, *LI, nullptr); remainderLoop = nullptr; |