This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Undo sub x, c -> add x, -c canonicalization
ClosedPublic

Authored by arsenm on Dec 21 2016, 6:52 PM.

Details

Summary

This is worse if the original constant is an inline immediate.

This should also be done for 64-bit adds, but requires fixing
operand folding bugs first.

Diff Detail

Event Timeline

arsenm updated this revision to Diff 82303.Dec 21 2016, 6:52 PM
arsenm retitled this revision from to AMDGPU: Undo sub x, c -> add x, -c canonicalization.
arsenm updated this object.
arsenm added a subscriber: llvm-commits.
nhaehnle accepted this revision.Jan 11 2017, 1:04 PM
nhaehnle added a reviewer: nhaehnle.

LGTM

This revision is now accepted and ready to land.Jan 11 2017, 1:04 PM
arsenm closed this revision.Jan 30 2017, 11:42 AM

r293540