This is an archive of the discontinued LLVM Phabricator instance.

[flang] Fold intrinsic inquiry functions SAME_TYPE_AS() and EXTENDS_TYPE_OF()
ClosedPublic

Authored by klausler on May 5 2022, 5:32 PM.

Details

Summary

When the result can be known at compilation time, fold it.
Success depends on whether the operands are polymorphic.
When neither one is polymorphic, the result is known and can
be either .TRUE. or .FALSE.; when either one is polymorphic,
a .FALSE. result still can be discerned.

Diff Detail

Event Timeline

klausler created this revision.May 5 2022, 5:32 PM
Herald added a project: Restricted Project. · View Herald Transcript
Herald added a subscriber: jdoerfert. · View Herald Transcript
klausler requested review of this revision.May 5 2022, 5:32 PM
jeanPerier accepted this revision.May 9 2022, 1:27 AM

Looks good

This revision is now accepted and ready to land.May 9 2022, 1:27 AM