File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
llvm/lib/Transforms/InstCombine Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -3116,11 +3116,11 @@ Instruction *InstCombinerImpl::visitGetElementPtrInst(GetElementPtrInst &GEP) {
3116
3116
return &GEP;
3117
3117
}
3118
3118
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
3120
3120
// do this after having tried to derive "nuw" above.
3121
3121
if (GEP.getNumIndices () == 1 ) {
3122
3122
// 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).
3124
3124
auto GetPreservedNoWrapFlags = [&](bool AddIsNUW) {
3125
3125
// We can preserve both "inbounds nuw", "nusw nuw" and "nuw" if we know
3126
3126
// that x + y does not have unsigned wrap.
You can’t perform that action at this time.
0 commit comments