This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Allow vectorization of round intrinsic
ClosedPublic

Authored by arsenm on Mar 20 2020, 2:45 PM.

Details

Summary

There seems to be a small benefit to the legalized sequence for v2f16
round with packed instructions, so allow vectorizing it by reducing
the cost.

An unintended side effect is vectorization of f32 round also
happens. The current FMA logic seems off to me, and isn't checking for
packed instructions.

Diff Detail

Event Timeline

arsenm created this revision.Mar 20 2020, 2:45 PM
rampitec accepted this revision.Mar 23 2020, 1:35 PM
This revision is now accepted and ready to land.Mar 23 2020, 1:35 PM