This is an archive of the discontinued LLVM Phabricator instance.

[MachineCopyPropagation] In isNopCopy, check the destination registers match in addition to the source registers.
ClosedPublic

Authored by craig.topper on Aug 24 2020, 11:10 PM.

Details

Summary

Previously if the source match we asserted that the destination
matched. But GPR <-> mask register copies on X86 can violate this
since we use the same K-registers for multiple sizes.

Fixes this ISPC issue https://github.com/ispc/ispc/issues/1851

Diff Detail

Event Timeline

craig.topper created this revision.Aug 24 2020, 11:10 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 24 2020, 11:10 PM
Herald added a subscriber: hiraditya. · View Herald Transcript
craig.topper requested review of this revision.Aug 24 2020, 11:10 PM
RKSimon accepted this revision.Sep 1 2020, 4:38 AM

LGTM

This revision is now accepted and ready to land.Sep 1 2020, 4:38 AM

Please can you raise a PR if we still want to get this in for 11.xxx

Would be good to have it merged to 11.0.

This revision was landed with ongoing or failed builds.Sep 1 2020, 12:45 PM
This revision was automatically updated to reflect the committed changes.