This is an archive of the discontinued LLVM Phabricator instance.

[TypePromotion] Add truncate in ConvertTruncs when the original truncate type is not extend type
ClosedPublic

Authored by bcl5980 on Jan 2 2023, 9:07 PM.

Details

Summary

If the src type is not extend type, after convert the truncate to and we need to truncate the and also to make sure the all user is legal.

The old fix D137613 doesn't work when the truncate convert to and have the other users. So this time I try to add the truncate after and to avoid all these potential issues.

Fix: #59554

Diff Detail

Event Timeline

bcl5980 created this revision.Jan 2 2023, 9:07 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 2 2023, 9:07 PM
Herald added a subscriber: hiraditya. · View Herald Transcript
bcl5980 requested review of this revision.Jan 2 2023, 9:07 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 2 2023, 9:07 PM
bcl5980 edited the summary of this revision. (Show Details)Jan 2 2023, 9:11 PM
samparker accepted this revision.Jan 3 2023, 1:36 AM

Thanks.

This revision is now accepted and ready to land.Jan 3 2023, 1:36 AM
This revision was landed with ongoing or failed builds.Jan 3 2023, 2:13 AM
This revision was automatically updated to reflect the committed changes.
llvm/lib/CodeGen/TypePromotion.cpp