This is an archive of the discontinued LLVM Phabricator instance.

R600/SI: Allow commuting some 3 op instructions
ClosedPublic

Authored by arsenm on Oct 17 2014, 6:57 PM.

Details

Reviewers
arsenm
Summary

e.g. v_mad_f32 a, b, c -> v_mad_f32 b, a, c

This simplifies matching v_madmk_f32.

This looks somewhat surprising, but it appears to be
OK to do this. We can commute src0 and src1 in all
of these instructions, and that's all that appears
to matter.

Diff Detail

Event Timeline

arsenm updated this revision to Diff 15111.Oct 17 2014, 6:57 PM
arsenm retitled this revision from to R600/SI: Allow commuting some 3 op instructions .
arsenm updated this object.
arsenm edited the test plan for this revision. (Show Details)
arsenm added a subscriber: Unknown Object (MLST).
arsenm accepted this revision.Nov 14 2014, 11:49 AM
arsenm added a reviewer: arsenm.
This revision is now accepted and ready to land.Nov 14 2014, 11:49 AM
arsenm closed this revision.Nov 14 2014, 11:49 AM