This is an archive of the discontinued LLVM Phabricator instance.

[flang] Do not create arith.extui with same from/to type
ClosedPublic

Authored by clementval on Apr 20 2022, 10:00 AM.

Details

Summary

In some case the lowering of ichar is generating an arith.extui operation
with the same from/to type. This operation do not accept from/to types to be
the same. If the from/to types are identical, we do not generate the extra
operation.

Diff Detail

Event Timeline

clementval created this revision.Apr 20 2022, 10:00 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald Transcript
Herald added a subscriber: mehdi_amini. · View Herald Transcript
clementval requested review of this revision.Apr 20 2022, 10:00 AM
clementval edited the summary of this revision. (Show Details)Apr 20 2022, 10:01 AM
This revision is now accepted and ready to land.Apr 22 2022, 12:35 AM