This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Select 64-bit {ADD,SUB}{C,E} nodes
ClosedPublic

Authored by nhaehnle on Oct 5 2016, 11:38 AM.

Details

Summary

This will be used for 64-bit MULHU, which is in turn used for the 64-bit
divide-by-constant optimization (see D24822).

Event Timeline

nhaehnle updated this revision to Diff 73678.Oct 5 2016, 11:38 AM
nhaehnle retitled this revision from to AMDGPU: Select 64-bit {ADD,SUB}{C,E} nodes.
nhaehnle updated this object.
nhaehnle added reviewers: arsenm, tstellarAMD.
nhaehnle added a subscriber: llvm-commits.
arsenm edited edge metadata.Oct 5 2016, 6:51 PM

Would a test that uses add/sub i128 show this?

nhaehnle updated this revision to Diff 73772.Oct 6 2016, 5:21 AM
nhaehnle edited edge metadata.

Indeed it is possible. Adding 128-bit add tests.

arsenm accepted this revision.Oct 6 2016, 5:40 AM
arsenm edited edge metadata.

LGTM. BTW are the UADDO/SADDO semantically the same as ADDC/SUBB except for how the carry out is represented? I've wanted to stop expanding those

This revision is now accepted and ready to land.Oct 6 2016, 5:40 AM
This revision was automatically updated to reflect the committed changes.