This is an archive of the discontinued LLVM Phabricator instance.

[flang][hlfir] allow recursive intrinsic lowering
ClosedPublic

Authored by tblah on Jun 6 2023, 9:34 AM.

Details

Summary

We need to allow recursive application of intrinsic lowering patterns,
otherwise we cannot lower nested calls of the same intrinsic e.g.
matmul(matmul(a, b), c).

matmul(matmul(a, b), matmul(c, d)) requires hlfir.associate of hlfir
expr with more than one use (TODO).

Diff Detail

Event Timeline

tblah created this revision.Jun 6 2023, 9:34 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptJun 6 2023, 9:34 AM
tblah requested review of this revision.Jun 6 2023, 9:34 AM
vzakhari accepted this revision.Jun 6 2023, 3:49 PM

LGTM, though, clang-format is needed.

This revision is now accepted and ready to land.Jun 6 2023, 3:49 PM
tblah updated this revision to Diff 529276.Jun 7 2023, 6:08 AM

Thanks for taking a look. Updating with correct formatting.

This revision was landed with ongoing or failed builds.Jun 7 2023, 7:36 AM
This revision was automatically updated to reflect the committed changes.
tblah added a comment.Jun 7 2023, 8:25 AM

Reverted because it broke compilation with MSVC