forked from OSchip/llvm-project
[PowerPC] Fixes -Wrange-loop-analysis warnings
This avoids new warnings due to D68912 adds -Wrange-loop-analysis to -Wall. Differential Revision: https://reviews.llvm.org/D71811
This commit is contained in:
parent
098d3347e7
commit
1b344e7967
|
@ -550,7 +550,7 @@ bool PPCLoopInstrFormPrep::rewriteLoadStores(Loop *L, Bucket &BucketChain,
|
|||
|
||||
// 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 @@ bool PPCLoopInstrFormPrep::rewriteLoadStores(Loop *L, Bucket &BucketChain,
|
|||
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 @@ bool PPCLoopInstrFormPrep::rewriteLoadStores(Loop *L, Bucket &BucketChain,
|
|||
} 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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue