[PATCH] D71811: [PowerPC] Fixes -Wrange-loop-analysis warnings
Mark de Wever via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Dec 22 10:24:46 PST 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rG1b344e7967a7: [PowerPC] Fixes -Wrange-loop-analysis warnings (authored by Mordante).
Changed prior to commit:
https://reviews.llvm.org/D71811?vs=235055&id=235065#toc
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D71811/new/
https://reviews.llvm.org/D71811
Files:
llvm/lib/Target/PowerPC/PPCLoopInstrFormPrep.cpp
Index: llvm/lib/Target/PowerPC/PPCLoopInstrFormPrep.cpp
===================================================================
--- llvm/lib/Target/PowerPC/PPCLoopInstrFormPrep.cpp
+++ llvm/lib/Target/PowerPC/PPCLoopInstrFormPrep.cpp
@@ -550,7 +550,7 @@
// Note that LoopPredecessor might occur in the predecessor list multiple
// times, and we need to add it the right number of times.
- for (const auto &PI : predecessors(Header)) {
+ for (auto PI : predecessors(Header)) {
if (PI != LoopPredecessor)
continue;
@@ -565,7 +565,7 @@
I8Ty, NewPHI, BasePtrIncSCEV->getValue(),
getInstrName(MemI, GEPNodeIncNameSuffix), InsPoint);
cast<GetElementPtrInst>(PtrInc)->setIsInBounds(IsPtrInBounds(BasePtr));
- for (const auto &PI : predecessors(Header)) {
+ for (auto PI : predecessors(Header)) {
if (PI == LoopPredecessor)
continue;
@@ -580,7 +580,7 @@
} else {
// Note that LoopPredecessor might occur in the predecessor list multiple
// times, and we need to make sure no more incoming value for them in PHI.
- for (const auto &PI : predecessors(Header)) {
+ for (auto PI : predecessors(Header)) {
if (PI == LoopPredecessor)
continue;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D71811.235065.patch
Type: text/x-patch
Size: 1234 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191222/722fc75f/attachment.bin>
More information about the llvm-commits
mailing list