This is an archive of the discontinued LLVM Phabricator instance.

[ConstantRange] Support for ashr in ConstantRange computation
ClosedPublic

Authored by jskumari on Dec 5 2017, 11:47 PM.

Details

Summary

Extend the ConstantRange implementation to compute the range of possible values resulting from an arithmetic right shift operation.
There will be a follow up patch to leverage this constant range infrastructure in LazyValueInfo.

Diff Detail

Event Timeline

jskumari created this revision.Dec 5 2017, 11:47 PM
mkazantsev added inline comments.Dec 7 2017, 9:55 AM
IR/ConstantRange.cpp
963 ↗(On Diff #125670)

positive -> non-negative

This revision is now accepted and ready to land.Dec 9 2017, 1:56 AM
jskumari updated this revision to Diff 127334.Dec 18 2017, 4:29 AM

Incorporated review comments.

This revision was automatically updated to reflect the committed changes.