Skip to content

Commit 1cf4654

Browse files
committed
format
1 parent d59529c commit 1cf4654

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -830,9 +830,10 @@ Instruction *InstCombinerImpl::foldGEPICmp(GEPOperator *GEPLHS, Value *RHS,
830830
DiffOperand = i;
831831
}
832832

833-
if (NumDifferences == 0) // SAME GEP?
834-
return replaceInstUsesWith(I, // No comparison is needed here.
835-
ConstantInt::get(I.getType(), ICmpInst::isTrueWhenEqual(Cond)));
833+
if (NumDifferences == 0) // SAME GEP?
834+
return replaceInstUsesWith(
835+
I, // No comparison is needed here.
836+
ConstantInt::get(I.getType(), ICmpInst::isTrueWhenEqual(Cond)));
836837
// If two GEPs only differ by an index, compare them.
837838
// Note that nowrap flags are always needed when comparing two indices.
838839
else if (NumDifferences == 1 && NW != GEPNoWrapFlags::none()) {

0 commit comments

Comments
 (0)