This is an archive of the discontinued LLVM Phabricator instance.

[flang] Fix crash in folding of DPROD() with non-scalar arguments
ClosedPublic

Authored by klausler on Jul 31 2023, 4:09 PM.

Details

Summary

DPROD(x,y) is defined as DBLE(x)*DBLE(y) and that's exactly how
the implementation of its rewriting and possible folding should
be implemented, instead of the current code that only works when
both arguments are scalar and crashes otherwise.

Diff Detail

Event Timeline

klausler created this revision.Jul 31 2023, 4:09 PM
Herald added a project: Restricted Project. · View Herald Transcript
klausler requested review of this revision.Jul 31 2023, 4:09 PM
vzakhari accepted this revision.Jul 31 2023, 4:34 PM

Looks good! Thank you for the fix!

This revision is now accepted and ready to land.Jul 31 2023, 4:34 PM
This revision was landed with ongoing or failed builds.Aug 1 2023, 9:39 AM
This revision was automatically updated to reflect the committed changes.