This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: fdiv -1, x -> rcp -x
ClosedPublic

Authored by arsenm on Jul 26 2016, 11:31 AM.

Details

Diff Detail

Event Timeline

arsenm updated this revision to Diff 65567.Jul 26 2016, 11:31 AM
arsenm retitled this revision from to AMDGPU: fdiv -1, x -> rcp -x.
arsenm updated this object.
arsenm added a reviewer: tstellarAMD.
arsenm added a subscriber: llvm-commits.
nhaehnle added inline comments.
lib/Target/AMDGPU/SIISelLowering.cpp
2487–2488

Comment: -1.0 / x -> rcp (fneg x)

test/CodeGen/AMDGPU/rsq.ll
79

SI-SAFE (E missing)

110

dito

arsenm updated this revision to Diff 66502.Aug 2 2016, 10:30 AM

Fix comment and check lines

nhaehnle accepted this revision.Aug 2 2016, 12:19 PM
nhaehnle added a reviewer: nhaehnle.

The comment still says 1.0 instead of -1.0. With that fixed, LGTM.

This revision is now accepted and ready to land.Aug 2 2016, 12:19 PM
arsenm closed this revision.Aug 2 2016, 3:32 PM

r277535