This is an archive of the discontinued LLVM Phabricator instance.

[InstCombine] Preserve !annotation for newly created instructions.
ClosedPublic

Authored by fhahn on Dec 16 2020, 7:50 AM.

Details

Summary

When replacing an instruction with !annotation with a newly created
replacement, add the !annotation metadata to the replacement.

This mostly covers cases where the new instructions are created using
the ::Create helpers. Instructions created by IRBuilder will be handled
by D91444.

Diff Detail

Event Timeline

fhahn created this revision.Dec 16 2020, 7:50 AM
fhahn requested review of this revision.Dec 16 2020, 7:50 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 16 2020, 7:50 AM
This revision is now accepted and ready to land.Dec 16 2020, 11:02 AM
This revision was landed with ongoing or failed builds.Dec 17 2020, 1:07 AM
This revision was automatically updated to reflect the committed changes.