This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Skip fneg/select combine if it can fold into other
ClosedPublic

Authored by arsenm on Jan 3 2017, 2:35 PM.

Details

Diff Detail

Event Timeline

arsenm updated this revision to Diff 82955.Jan 3 2017, 2:35 PM
arsenm retitled this revision from to AMDGPU: Skip fneg/select combine if it can fold into other.
arsenm updated this object.
arsenm added a subscriber: llvm-commits.
nhaehnle accepted this revision.Jan 11 2017, 2:15 PM
nhaehnle added a reviewer: nhaehnle.

One minor comment, LGTM otherwise.

lib/Target/AMDGPU/AMDGPUISelLowering.cpp
2763

Just ShouldFold, since it also refers to the fabs case?

This revision is now accepted and ready to land.Jan 11 2017, 2:15 PM
arsenm closed this revision.Jan 12 2017, 11:10 AM

r291792

lib/Target/AMDGPU/AMDGPUISelLowering.cpp
2763

This specifically is taking care of the -|x|, K case so it's more concerned about the negation