This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Generalize matching of v_med3_f32
ClosedPublic

Authored by arsenm on Jan 17 2017, 4:06 PM.

Details

Reviewers
tstellarAMD
Summary

I think this is safe as long as no inputs are known to ever be nans.

Also add an intrinsic for fmed3 to be able to handle all safe math cases.

Diff Detail

Event Timeline

arsenm created this revision.Jan 17 2017, 4:06 PM
This revision is now accepted and ready to land.Jan 30 2017, 3:16 PM
arsenm closed this revision.Jan 30 2017, 7:19 PM

r293598