[PATCH] D149712: [SLP][NFC] Cleanup: Add while loop around for loop instead of modifying iterators.
Vasileios Porpodas via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue May 2 18:58:00 PDT 2023
vporpo created this revision.
vporpo added reviewers: ABataev, RKSimon.
Herald added a subscriber: hiraditya.
Herald added a project: All.
vporpo requested review of this revision.
Herald added subscribers: llvm-commits, pcwang-thead.
Herald added a project: LLVM.
Updating the begin/end iterators of the for loop within its body is a bit confusing.
Wrapping it with a while loop makes it explicit that we may iterate more than once.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D149712
Files:
llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D149712.518932.patch
Type: text/x-patch
Size: 10161 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230503/481d6497/attachment.bin>
More information about the llvm-commits
mailing list