This is an archive of the discontinued LLVM Phabricator instance.

Fix ValueTracking computeConstantRange to use "may" instead of "always" semantics for llvm.assume
ClosedPublic

Authored by clin1 on Aug 2 2021, 10:54 AM.

Details

Summary

ValueTracking should allow for value ranges that may satisfy llvm.assume, instead of restricting the ranges only to values that will always satisfy the condition.

Diff Detail

Event Timeline

clin1 created this revision.Aug 2 2021, 10:54 AM
clin1 requested review of this revision.Aug 2 2021, 10:54 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 2 2021, 10:54 AM
nikic accepted this revision.Aug 2 2021, 11:48 AM

LGTM

This revision is now accepted and ready to land.Aug 2 2021, 11:48 AM
clin1 added a comment.Aug 2 2021, 1:02 PM

Thank you for the quick review! Could I request you to "press the commit button", please? I apologize, I don't have write access to the repo.

nikic added a comment.Aug 2 2021, 1:10 PM

Sure, can you please share Your Name <your@email> to use for the commit?

clin1 added a comment.Aug 2 2021, 1:17 PM

Chang-Sun Lin, Jr <chang-sun.lin.jr@intel.com>

Thanks.