This is an archive of the discontinued LLVM Phabricator instance.

[SCEV] Try to get RHS from sext in implication via operations
AbandonedPublic

Authored by mkazantsev on Apr 3 2017, 6:16 AM.

Details

Summary

When proving implication via operations and LHS was taken from sext, it makes sense to try
to take RHS from extension also in case of type sizes mismatch.

Diff Detail

Event Timeline

mkazantsev created this revision.Apr 3 2017, 6:16 AM
sanjoy requested changes to this revision.Apr 3 2017, 8:48 AM

Can you please write a test for this?

This revision now requires changes to proceed.Apr 3 2017, 8:48 AM

Well, this situation is not something that can be reached easily (mostly because normal add does not propagate nsw flag), but I will try.

Well, this situation is not something that can be reached easily (mostly because normal add does not propagate nsw flag), but I will try.

One way is to change it to an assert and then try to bootstrap clang[1], and see what breaks. :)

[1]: http://llvm.org/docs/AdvancedBuilds.html#id2

mkazantsev abandoned this revision.Oct 24 2017, 2:33 AM