This is an archive of the discontinued LLVM Phabricator instance.

[PPC64LE] Add -m[no-]optimize-swaps option
AbandonedPublic

Authored by wschmidt on Mar 30 2015, 12:19 PM.

Details

Summary

This patch adds a new switch (-m[no-]optimize-swaps) that sets the optimize-swaps feature attribute for the back end. The code controlled by this switch is under review at http://reviews.llvm.org/D8565.

Diff Detail

Event Timeline

wschmidt updated this revision to Diff 22896.Mar 30 2015, 12:19 PM
wschmidt retitled this revision from to [PPC64LE] Add -m[no-]optimize-swaps option.
wschmidt updated this object.
wschmidt edited the test plan for this revision. (Show Details)
wschmidt added reviewers: hfinkel, kbarton, nemanjai, seurer.
wschmidt added a subscriber: Unknown Object (MLST).

In D8565, Eric questions this method of connecting an option for disabling a target pass with the back end. We do not currently have a better way of doing this. I'm ok with removing this, but see D8565 for further discussion.

wschmidt abandoned this revision.Mar 31 2015, 9:07 AM

Withdrawing this after discussion with interested parties. Using a cl::opt solution in llvm instead.

To be clear I wasn't objecting to the front end option necessarily, just the manner of communicating it to the backend. Perhaps the option should enable/disable the pass from running via the pass manager?

-eric

This is the method used by various other PowerPC passes, and was suggested by Hal. As I only want this for a chicken switch, using -mllvm <opt> is fine with me.