This is an archive of the discontinued LLVM Phabricator instance.

[SeparateConstOffsetFromGEP] make two tests more strict
ClosedPublic

Authored by jingyue on Jun 6 2014, 4:10 PM.

Details

Reviewers
eliben
meheff
Summary

inbounds are not necessary in these two tests. zext(a +nuw b) = zext(a) +
zext(b) should hold with or without inbounds.

Diff Detail

Event Timeline

jingyue updated this revision to Diff 10197.Jun 6 2014, 4:10 PM
jingyue retitled this revision from to [SeparateConstOffsetFromGEP] make two tests more strict.
jingyue updated this object.
jingyue edited the test plan for this revision. (Show Details)
jingyue added reviewers: eliben, meheff.
jingyue added a subscriber: Unknown Object (MLST).
meheff accepted this revision.Jun 8 2014, 10:00 AM
meheff edited edge metadata.
meheff added inline comments.
test/Transforms/SeparateConstOffsetFromGEP/NVPTX/split-gep.ll
76

nit: in the comment the variable is a, in the code it is b.

81

same here: a/b mismatch.

This revision is now accepted and ready to land.Jun 8 2014, 10:00 AM
jingyue closed this revision.Jun 8 2014, 1:10 PM

Thanks Mark!

Fixed the mismatches and committed it in r210437