This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Try to use op_sel when selecting packed instructions
ClosedPublic

Authored by arsenm on Apr 27 2017, 11:26 AM.

Details

Reviewers
kzhuravl
Summary

Avoids instructions to pack a vector when the source is really
a scalar being broadcast.

Also be smarter and look for per-component fneg.

Doesn't yet handle scalar from upper half of register
or other swizzles.

Diff Detail

Event Timeline

arsenm created this revision.Apr 27 2017, 11:26 AM
arsenm updated this revision to Diff 96984.Apr 27 2017, 12:56 PM

Don't add component neg modifiers if the components can't be folded

kzhuravl accepted this revision.May 17 2017, 7:51 AM

LGTM.

This revision is now accepted and ready to land.May 17 2017, 7:51 AM
arsenm closed this revision.May 17 2017, 1:31 PM

r303291