This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Do operand folding in program order
ClosedPublic

Authored by arsenm on Jun 19 2017, 8:21 PM.

Details

Reviewers
tstellar
rampitec
Summary

Before it was possible to partially fold use instructions
before the defs. After the xor is folded into a copy, the same
mov can end up in the fold list twice, so on the second attempt
it will fail expecting to see a register to fold.

Diff Detail

Event Timeline

arsenm created this revision.Jun 19 2017, 8:21 PM
rampitec accepted this revision.Jun 19 2017, 8:47 PM

Given implied structured CFG LGTM.

This revision is now accepted and ready to land.Jun 19 2017, 8:47 PM

Unstructured is fine, defs just should be visited before uses

arsenm closed this revision.Jun 20 2017, 11:57 AM

r305821