This is an archive of the discontinued LLVM Phabricator instance.

Broaden FoldItoFPtoI to try and establish whether the integer value fits into the float type
AbandonedPublic

Authored by aarzee on Apr 15 2016, 1:43 PM.

Details

Reviewers
None
Summary

Previously, FoldItoFPtoI would only check if the width of the integer type fits into the width of the mantissa. This change will now let it fold if it can establish that the actual value of the integer fits within the floating point type (both mantissa and exponent are considered).

Diff Detail

Event Timeline

aarzee updated this revision to Diff 53944.Apr 15 2016, 1:43 PM
aarzee retitled this revision from to Broaden FoldItoFPtoI to try and establish whether the integer value fits into the float type.
aarzee updated this object.
aarzee added reviewers: majnemer, escha, scanon.
aarzee abandoned this revision.Jul 29 2016, 11:25 AM