This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Do not lower fast unsafe div for safe, f32, with fp32 denormals
ClosedPublic

Authored by kzhuravl on Apr 14 2017, 7:59 AM.

Diff Detail

Repository
rL LLVM

Event Timeline

kzhuravl created this revision.Apr 14 2017, 7:59 AM
arsenm added inline comments.Apr 14 2017, 9:51 AM
lib/Target/AMDGPU/SIISelLowering.cpp
3384–3385 ↗(On Diff #95300)

How is this different from the check right below in the constant case? Is it just the multiply by reciprocal case for non-constant below that is the problem?

kzhuravl added inline comments.Apr 14 2017, 10:52 AM
lib/Target/AMDGPU/SIISelLowering.cpp
3384–3385 ↗(On Diff #95300)

Multiply by the reciprocal for non-constant case is the problem.

kzhuravl updated this revision to Diff 95340.Apr 14 2017, 1:56 PM

Remove redundant check below.

kzhuravl updated this revision to Diff 95343.Apr 14 2017, 2:11 PM

Upload full diff.

arsenm accepted this revision.Apr 21 2017, 10:55 AM

LGTM

This revision is now accepted and ready to land.Apr 21 2017, 10:55 AM
This revision was automatically updated to reflect the committed changes.