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
Diff Detail
Event Timeline
Comment Actions
Withdrawing this after discussion with interested parties. Using a cl::opt solution in llvm instead.
Comment Actions
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
Comment Actions
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.