This is an archive of the discontinued LLVM Phabricator instance.

GlobalISel: Fold some idempotent operations
ClosedPublic

Authored by arsenm on Nov 15 2022, 8:33 PM.

Details

Summary

This makes the existing fabs_fabs fold redundant, which
I thought was using more tablegen matching, but apparently not.
I'm not sure how to make match work with multiple opcodes. There
are a few more this could handle, but these are the ones that
legalization are more likely to introduce.

Diff Detail

Event Timeline

arsenm created this revision.Nov 15 2022, 8:33 PM
Herald added a project: Restricted Project. · View Herald TranscriptNov 15 2022, 8:33 PM
arsenm requested review of this revision.Nov 15 2022, 8:33 PM
Herald added a project: Restricted Project. · View Herald TranscriptNov 15 2022, 8:33 PM
Herald added a subscriber: wdng. · View Herald Transcript
foad accepted this revision.Nov 15 2022, 10:59 PM
This revision is now accepted and ready to land.Nov 15 2022, 10:59 PM