This is an archive of the discontinued LLVM Phabricator instance.

[GlobalISel] Add hint elimination combine
AbandonedPublic

Authored by paquette on Jan 27 2021, 2:36 PM.

Details

Reviewers
aemerson
arsenm
Summary

This adds a hint elimination combine, which changes

%x = ...
%y = G_ASSERT_ZEXT %x, n
...
%z = G_FOO ... %y ...

into

%x = ...
...
%z = G_FOO ... %x

This is intended to run in a late combiner, post-legalization.

Diff Detail

Event Timeline

paquette created this revision.Jan 27 2021, 2:36 PM
paquette requested review of this revision.Jan 27 2021, 2:36 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 27 2021, 2:36 PM
Herald added a subscriber: wdng. · View Herald Transcript

I think letting the selector handle these as copies would be better. The selector still benefits from the known bits information

paquette abandoned this revision.Jan 27 2021, 4:57 PM

Going to try and plumb this through to the selector instead.