This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] don't set Constraints/DisableEncoding from the Profile
AbandonedPublic

Authored by cwabbott on Jun 27 2017, 3:46 PM.

Details

Reviewers
tstellar
arsenm
Summary

A bunch of different instruction classes were copying these fields from
the associated *OPProfile, even though we never actually set them in the
Profile -- we were only ever set them through file-scope let statements
when instantiating the instructions themselves. Since these fields are
usually special-cased on a per-instruction basis, it doesn't make much
sense to have them in the Profile anyways, so just delete this code.

Event Timeline

cwabbott created this revision.Jun 27 2017, 3:46 PM
arsenm accepted this revision.Jun 28 2017, 11:33 AM

LGTM

This revision is now accepted and ready to land.Jun 28 2017, 11:33 AM

I realized today that this change is bogus, since these lines aren't copying the Constraints from the Profile. They're copying the constraints set via the pseudoinstruction, and removing these lines breaks a few things, in particular assembling MAC instructions, and probably liveness tracking for them too. Originally the changes in D34716 wouldn't work without this, but I'm going to update D34716 with a better solution that passes all the tests.

cwabbott abandoned this revision.Aug 3 2017, 5:39 PM