This is an archive of the discontinued LLVM Phabricator instance.

[PeepholeOpt] Don't stop simplifying copies on sequence of subregs
ClosedPublic

Authored by qcolombet on Mar 27 2019, 10:15 AM.

Details

Summary

This patch removes an overly conservative check that would prevent
simplifying copies when the value we were tracking would go through
several subregister indices.
Indeed, the intend of this check was to not track values whenever
we have to compose subregister, but actually what the check was
doing was bailing anytime we see a second subreg, even if that
second subreg would actually be the new source of truth (as opposed
to a part of that subreg).

Diff Detail

Repository
rL LLVM

Event Timeline

qcolombet created this revision.Mar 27 2019, 10:15 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 27 2019, 10:15 AM
arsenm accepted this revision.Mar 27 2019, 10:18 AM

LGTM

This revision is now accepted and ready to land.Mar 27 2019, 10:18 AM
This revision was automatically updated to reflect the committed changes.