This is an archive of the discontinued LLVM Phabricator instance.

[flang] When folding FINDLOC, convert operands to a common type
ClosedPublic

Authored by klausler on Jun 3 2022, 4:08 PM.

Details

Summary

For example, FINDLOC(A,X) should convert both A and X to COMPLEX(8)
if the operands are REAL(8) and COMPLEX(4), so that comparisons
can be done without losing inforation. The current implementation
unconditionally converts X to the type of the array A.

Diff Detail

Event Timeline

klausler created this revision.Jun 3 2022, 4:08 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 3 2022, 4:08 PM
Herald added a subscriber: jdoerfert. · View Herald Transcript
klausler requested review of this revision.Jun 3 2022, 4:08 PM
vdonaldson accepted this revision.Jun 3 2022, 5:23 PM
This revision is now accepted and ready to land.Jun 3 2022, 5:23 PM