This is an archive of the discontinued LLVM Phabricator instance.

[PowerPC] set optimization level in SelectionDAGISel
ClosedPublic

Authored by inouehrs on Jun 26 2017, 5:28 AM.

Details

Summary

PowerPC backend does not pass the current optimization level to SelectionDAGISel and so SelectionDAGISel works with the default optimization level regardless of the current optimization level.
This patch makes the PowerPC backend set the optimization level correctly.

Diff Detail

Repository
rL LLVM

Event Timeline

inouehrs created this revision.Jun 26 2017, 5:28 AM
hfinkel accepted this revision.Jun 26 2017, 8:05 AM

LGTM.

Please make sure that you run a self-hosting test at both -O3 and -O0 (Release and Debug) before committing.

This revision is now accepted and ready to land.Jun 26 2017, 8:05 AM
This revision was automatically updated to reflect the committed changes.

committed after bootstrap tests with -O0 and -O3