This is an archive of the discontinued LLVM Phabricator instance.

[InstCombine] Check if zext src and trunc dst have same types
AbandonedPublic

Authored by datta.nagraj on Jun 10 2021, 8:05 AM.

Details

Reviewers
None
Summary

Apply the opt only if zext src and trunc dst have same type and
do it only for datatypes of width more than 5, as for width less
than 6, this opt fails:

https://alive2.llvm.org/ce/z/5ThC64

The opt to be applied when width is less than 6 is shown here:

https://alive2.llvm.org/ce/z/ZtZm4w

Diff Detail

Event Timeline

datta.nagraj created this revision.Jun 10 2021, 8:05 AM
datta.nagraj requested review of this revision.Jun 10 2021, 8:05 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 10 2021, 8:05 AM
datta.nagraj abandoned this revision.Jun 10 2021, 8:52 PM