This is an archive of the discontinued LLVM Phabricator instance.

[flang] Lower logical comparison and logical operations
ClosedPublic

Authored by clementval on Feb 25 2022, 5:38 AM.

Details

Summary

This handles the lowering of the logical comparison
to arith.cmpi operation. The logical operations .OR., .AND.
and .NOT. are lowered to arith.ori, arith.andi and arith.xori

This patch is part of the upstreaming effort from fir-dev branch.

Depends on D120559

Diff Detail

Event Timeline

clementval created this revision.Feb 25 2022, 5:38 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 25 2022, 5:38 AM
Herald added a subscriber: mehdi_amini. · View Herald Transcript
clementval requested review of this revision.Feb 25 2022, 5:38 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 25 2022, 5:38 AM
rovka accepted this revision.Feb 25 2022, 6:20 AM
rovka added a subscriber: rovka.

LGTM.

This revision is now accepted and ready to land.Feb 25 2022, 6:20 AM
schweitz accepted this revision.Feb 25 2022, 8:44 AM