This is an archive of the discontinued LLVM Phabricator instance.

[flang] Fix crash in location reduction folding with DIM= and scalar MASK=
ClosedPublic

Authored by klausler on Aug 7 2023, 2:13 PM.

Details

Summary

The shape of an expanded scalar MASK= was incorrect in the template
code that folds FINDLOC/MAXLOC/MINLOC, leading to a vector indexing
crash when a DIM= argument is also present.

Fixes https://github.com/llvm/llvm-project/issues/64286.

Diff Detail

Event Timeline

klausler created this revision.Aug 7 2023, 2:13 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 7 2023, 2:13 PM
Herald added a subscriber: jdoerfert. · View Herald Transcript
klausler requested review of this revision.Aug 7 2023, 2:13 PM
vdonaldson accepted this revision.Aug 7 2023, 2:40 PM
This revision is now accepted and ready to land.Aug 7 2023, 2:40 PM