This is an archive of the discontinued LLVM Phabricator instance.

[ConstantRange] Implement getSignedMin/Max in a less complicated and faster way
ClosedPublic

Authored by craig.topper on Jun 1 2017, 5:39 PM.

Details

Summary

As far as I can tell we should be able to implement these almost the same way we do unsigned, but using signed comparisons and checks for min signed value instead of min unsigned value.

Diff Detail

Repository
rL LLVM

Event Timeline

craig.topper created this revision.Jun 1 2017, 5:39 PM
craig.topper retitled this revision from [ConstantRange] Implement getSignedMin/Max in a less complicated way to [ConstantRange] Implement getSignedMin/Max in a less complicated and faster way.Jun 16 2017, 1:55 PM

Ping

davide accepted this revision.Jun 16 2017, 3:42 PM

LGTM. THanks for doing this Craig.

This revision is now accepted and ready to land.Jun 16 2017, 3:42 PM
This revision was automatically updated to reflect the committed changes.