This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Reduce code size with fcanonicalize (fneg x)
ClosedPublic

Authored by arsenm on Jul 30 2018, 4:08 AM.

Details

Reviewers
rampitec
nhaehnle
Summary

When fcanonicalize is lowered to a mul, we can
use -1.0 for free and avoid the cost of the bigger
encoding for source modifers.

Diff Detail

Event Timeline

arsenm created this revision.Jul 30 2018, 4:08 AM
This revision is now accepted and ready to land.Jul 30 2018, 4:36 AM
arsenm closed this revision.Jul 30 2018, 5:17 AM

r338244