This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Fix asserts on invalid register ranges
ClosedPublic

Authored by arsenm on Oct 14 2015, 12:04 PM.

Details

Reviewers
tstellarAMD
Summary

If the requested SGPR was not actually aligned, it was
accepted and rounded down instead of rejected.

Also fix an assert if the range is an invalid size.

Diff Detail

Event Timeline

arsenm updated this revision to Diff 37370.Oct 14 2015, 12:04 PM
arsenm retitled this revision from to AMDGPU: Fix asserts on invalid register ranges.
arsenm updated this object.
arsenm added a reviewer: tstellarAMD.
arsenm added a subscriber: llvm-commits.
arsenm updated this revision to Diff 37372.Oct 14 2015, 12:18 PM

Fix patch

tstellarAMD accepted this revision.Oct 20 2015, 3:20 PM
tstellarAMD edited edge metadata.

LGTM.

This revision is now accepted and ready to land.Oct 20 2015, 3:20 PM
nhaehnle added inline comments.
lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp
543–548

Nitpick: Maybe rename Size to Alignment?

arsenm closed this revision.Nov 3 2015, 2:53 PM

r252009