This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Turn class x, p_zero|n_zero into fcmp oeq x, 0
ClosedPublic

Authored by arsenm on Aug 6 2018, 6:23 AM.

Details

Reviewers
rampitec
b-sumner
Summary

The library does use this for some reason

Diff Detail

Event Timeline

arsenm created this revision.Aug 6 2018, 6:23 AM
rampitec added inline comments.Aug 6 2018, 9:05 AM
lib/Transforms/InstCombine/InstCombineCalls.cpp
3266

Is it really true for -0?

arsenm added inline comments.Aug 7 2018, 11:39 PM
lib/Transforms/InstCombine/InstCombineCalls.cpp
3266

Yes, -0.0 and 0.0 compare equal

This revision is now accepted and ready to land.Aug 8 2018, 12:02 AM
arsenm closed this revision.Aug 10 2018, 12:00 PM

r339461