This is an archive of the discontinued LLVM Phabricator instance.

[DAGCombiner] Fold trunc(undef) -> undef.
ClosedPublic

Authored by craig.topper on Aug 14 2023, 11:45 AM.

Details

Summary

We already do this in getNode, but the undef might appear during
another DAGCombine.

While here remove code for handling noop truncates. getNode checks
the types and won't a noop truncate.

Diff Detail

Event Timeline

craig.topper created this revision.Aug 14 2023, 11:45 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 14 2023, 11:45 AM
craig.topper requested review of this revision.Aug 14 2023, 11:45 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 14 2023, 11:45 AM
arsenm accepted this revision.Aug 14 2023, 12:03 PM
This revision is now accepted and ready to land.Aug 14 2023, 12:03 PM
This revision was landed with ongoing or failed builds.Aug 14 2023, 1:02 PM
This revision was automatically updated to reflect the committed changes.