This is an archive of the discontinued LLVM Phabricator instance.

Legalize FMINNAN and FMAXNAN during float16 promotion
Needs ReviewPublic

Authored by pirama on Jun 5 2016, 7:10 PM.

Details

Reviewers
jmolloy
Summary

Folding of setcc + select to fminnan or fmaxnan can happen for float16
since this folding is conditioned on the eventual legalized type (float,
in this case). Promote result of FMINNAN and FMAXNAN nodes just like
other binary nodes.

Diff Detail

Event Timeline

pirama updated this revision to Diff 59684.Jun 5 2016, 7:10 PM
pirama retitled this revision from to Legalize FMINNAN and FMAXNAN during float16 promotion.
pirama updated this object.
pirama added a reviewer: jmolloy.
pirama added subscribers: srhines, llvm-commits.
ab added a subscriber: ab.Jun 5 2016, 7:50 PM

Is this r271317?

Feel free to add the tests though (nm in particular).

pirama added a comment.Jun 5 2016, 8:02 PM
In D21009#449432, @ab wrote:

Is this r271317?

Yes, you are correct :) My tree was slightly older than this revision and hence I missed it. I'll upload a patch tomorrow with just the nm test.