The old requirement on GEP candidates being in bounds is unnecessary.
For off-bound GEPs, we still have
&B[i * S] = B + (i * S) * e = B + (i * e) * S
Paths
| Differential D8809
[SLSR] handles off bounds GEPs ClosedPublic Authored by jingyue on Apr 2 2015, 1:47 PM.
Details Summary The old requirement on GEP candidates being in bounds is unnecessary. &B[i * S] = B + (i * S) * e = B + (i * e) * S
Diff Detail Event Timelinejingyue updated this object. Comment Actions LGTM. Thanks!
Closed by commit rL233949: [SLSR] handles off bounds GEPs (authored by jingyue). · Explain WhyApr 2 2015, 2:21 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 23182 lib/Transforms/Scalar/StraightLineStrengthReduce.cpp
test/Transforms/StraightLineStrengthReduce/slsr-gep.ll
|
nit: "out of bounds" is probably the term you want to use, not "off bounds".