This is an archive of the discontinued LLVM Phabricator instance.

[flang] Prevent a bad folding rewrite
ClosedPublic

Authored by klausler on Sep 21 2022, 3:25 PM.

Details

Summary

When a subexpression does not have both constant elements and
a constant shape, folding is rewriting it into a vector of its
elements. This is of course wrong when the shape shows that
the result has rank greater than 1.

Diff Detail

Event Timeline

klausler created this revision.Sep 21 2022, 3:25 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 21 2022, 3:25 PM
Herald added a subscriber: jdoerfert. · View Herald Transcript
klausler requested review of this revision.Sep 21 2022, 3:25 PM
jeanPerier accepted this revision.Sep 22 2022, 5:09 AM
This revision is now accepted and ready to land.Sep 22 2022, 5:09 AM
This revision was landed with ongoing or failed builds.Sep 23 2022, 8:11 AM
This revision was automatically updated to reflect the committed changes.