This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] Move SiShrinkInstruction and SDWAPeephole to SSAOptimization passes
ClosedPublic

Authored by SamWot on Apr 5 2017, 6:03 AM.

Details

Summary

Difference beetween PreRegAlloc() and MachineSSAOptimization() are that the former is run despite of -O0 optimization level. In my undestanding SiShrinkInstructions and SDWAPeephole shouldn't run when optimizations are disabled.
With this change order of passes will not change.

Diff Detail

Repository
rL LLVM

Event Timeline

SamWot created this revision.Apr 5 2017, 6:03 AM
SamWot added a subscriber: Restricted Project.Apr 5 2017, 6:53 AM
arsenm accepted this revision.Apr 5 2017, 9:48 AM

LGTM. You can also directly check the optimization level, but this is better.

This revision is now accepted and ready to land.Apr 5 2017, 9:48 AM
This revision was automatically updated to reflect the committed changes.