[llvm-commits] [PATCH] X86: Turn cmovs into branches when profitable.

Andrew Trick atrick at apple.com
Thu Apr 26 14:10:34 PDT 2012


On Apr 26, 2012, at 12:30 PM, Benjamin Kramer <benny.kra at googlemail.com> wrote:

> Some questions remain open. Should it be merged into CodeGenPrepare? We need some kind of target hook to avoid doing the optimization on CPUs that are unlikely to benefit, like Atom and pre-A9 ARM cores. Of course benchmarking is key, it's just hard to dig up the hardware ;)

Ben,

Would you mind declaring extern SelectToBranchID and completely removing createSelectToBranchPass? If you use addPass(ID) to create the pass, then any target can use PassConfig::disablePass(ID) to disable it.

-Andy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120426/2cf3ece6/attachment.html>


More information about the llvm-commits mailing list