Skip to content

Commit b4048ba

Browse files
committed
Fixup code comments
1 parent 51ec9b0 commit b4048ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Transforms/InstCombine/InstructionCombining.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3116,11 +3116,11 @@ Instruction *InstCombinerImpl::visitGetElementPtrInst(GetElementPtrInst &GEP) {
31163116
return &GEP;
31173117
}
31183118

3119-
// These rewrites is trying to preserve inbounds/nuw attributes. So we want to
3119+
// These rewrites are trying to preserve inbounds/nuw attributes. So we want to
31203120
// do this after having tried to derive "nuw" above.
31213121
if (GEP.getNumIndices() == 1) {
31223122
// Given (gep p, x+y) we want to determine the common nowrap flags for both
3123-
// gep if transforming into (gep (gep p, x), y).
3123+
// geps if transforming into (gep (gep p, x), y).
31243124
auto GetPreservedNoWrapFlags = [&](bool AddIsNUW) {
31253125
// We can preserve both "inbounds nuw", "nusw nuw" and "nuw" if we know
31263126
// that x + y does not have unsigned wrap.

0 commit comments

Comments
 (0)