This is an archive of the discontinued LLVM Phabricator instance.

[GlobalISel][AArch64] Early select stores which have G_IMPLICIT_DEF as the value
AbandonedPublic

Authored by paquette on Apr 1 2020, 3:58 PM.

Details

Reviewers
aemerson
Summary

These can just be deleted, since they're just stores of undefined values.

This is equivalent to what the DAGCombiner does. It's better to do this later than earlier to make sure we handle any implicit defs introduced during legalization.

Diff Detail

Event Timeline

paquette created this revision.Apr 1 2020, 3:58 PM

This could go into a post-legalizer combiner. Maybe we should add one and run it at optimization modes?

I think that's a good idea for this sort of thing.

We could also move all of the other G_IMPLICIT_DEF-related combines there, since they're more likely to catch things there.

paquette abandoned this revision.Apr 24 2020, 8:42 PM

Post-legalizer combiner + equivalent transform: D78852