Skip to content

Commit 62ec82b

Browse files
committed
Use equal() instead of loop over zip()
1 parent a98a794 commit 62ec82b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

llvm/lib/Transforms/Utils/SimplifyCFG.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1993,9 +1993,8 @@ static bool canSinkInstructions(
19931993
if (It == PHIOperands.end())
19941994
// There may be uses in other blocks when sinking into a loop header.
19951995
return false;
1996-
for (auto [I1, I2] : zip(Insts, It->second))
1997-
if (I1 != I2)
1998-
return false;
1996+
if (!equal(Insts, It->second))
1997+
return false;
19991998
}
20001999

20012000
// Because SROA can't handle speculating stores of selects, try not to sink

0 commit comments

Comments
 (0)