Skip to content

Commit 4eba40c

Browse files
authored
[ConstraintElim] Remove dead code. NFC. (#118983)
`R2` should be always greater than `R1` here because both `R1` and `R2` are not modified inside the loop.
1 parent 0dc086a commit 4eba40c

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

llvm/lib/Analysis/ConstraintSystem.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,6 @@ bool ConstraintSystem::eliminateUsingFM() {
5252
for (unsigned R1 = 0; R1 < NumRemainingConstraints; R1++) {
5353
// FIXME do not use copy
5454
for (unsigned R2 = R1 + 1; R2 < NumRemainingConstraints; R2++) {
55-
if (R1 == R2)
56-
continue;
57-
5855
int64_t UpperLast = getLastCoefficient(RemainingRows[R2], LastIdx);
5956
int64_t LowerLast = getLastCoefficient(RemainingRows[R1], LastIdx);
6057
assert(

0 commit comments

Comments
 (0)