This is an archive of the discontinued LLVM Phabricator instance.

[flang] Fold real-valued DIM()
ClosedPublic

Authored by klausler on May 6 2022, 4:57 PM.

Details

Summary

Fold references to the intrinsic function DIM with constant real
arguments. And clean up folding of comparisons with NaNs to address
a problem noticed in testing -- NaNs should successfully compare
unequal to all values, including themselves, instead of failing all
comparisons.

Diff Detail

Event Timeline

klausler created this revision.May 6 2022, 4:57 PM
Herald added a project: Restricted Project. · View Herald Transcript
Herald added a subscriber: jdoerfert. · View Herald Transcript
klausler requested review of this revision.May 6 2022, 4:57 PM
vdonaldson accepted this revision.May 6 2022, 5:02 PM
This revision is now accepted and ready to land.May 6 2022, 5:02 PM
This revision was automatically updated to reflect the committed changes.