This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Do not re-use tmpreg in spill/restore lowering
ClosedPublic

Authored by MatzeB on Oct 3 2016, 6:23 PM.

Details

Summary

The register scavenging code does not support multiple definitions of
the same vreg.

Found this while working on some register scavenging changes. While having a vreg with multiple definitions is already a problem with the current register scavenger it is very unlikely to cause actual problem in practice. The new code however will use that property more aggressively.

Diff Detail

Repository
rL LLVM

Event Timeline

MatzeB updated this revision to Diff 73386.Oct 3 2016, 6:23 PM
MatzeB retitled this revision from to AMDGPU: Do not re-use tmpreg in spill/restore lowering.
MatzeB updated this object.
MatzeB added a reviewer: arsenm.
MatzeB set the repository for this revision to rL LLVM.
MatzeB added a subscriber: llvm-commits.
arsenm accepted this revision.Oct 3 2016, 6:30 PM
arsenm edited edge metadata.

LGTM

This revision is now accepted and ready to land.Oct 3 2016, 6:30 PM
This revision was automatically updated to reflect the committed changes.