This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Fold undef fcanonicalize to qNaN
ClosedPublic

Authored by arsenm on Jul 31 2018, 1:19 AM.

Details

Reviewers
rampitec
nhaehnle
Summary

We could choose a free 0 for this, but this
matches the behavior for fmul undef, 1.0. Also,
the NaN use is more useful for folding use operations
although if it's not eliminated it is more expensive
in terms of code size.

Diff Detail

Event Timeline

arsenm created this revision.Jul 31 2018, 1:19 AM
This revision is now accepted and ready to land.Jul 31 2018, 3:44 AM
arsenm closed this revision.Jul 31 2018, 6:34 AM

r338376