[llvm-commits] More aggressive speculation in SimplifyCFG

Jakob Stoklund Olesen stoklund at 2pi.dk
Wed Jan 23 21:59:42 PST 2013


On Jan 22, 2013, at 9:34 PM, Chandler Carruth <chandlerc at google.com> wrote:

> There also appears to be some problems in early if-conversion as code in simple, common compression loops for clamping values seems to end up as a CFG rather than a cmov currently, and as a consequence runs significantly slower in my benchmarks of zlib and the like. While this might be "fixed" by making the IR level speculation better, it seems likely to indicate an actual issue with the underlying if-conversion pass...

Stupid question: Did you turn it on?

If-conversion isn't enabled for x86 by default because I haven't had the time to hook it up to a good enough machine model and do the performance benchmarking work. Without a good machine model it can cause significant regressions.

This is old, but still worthwhile: http://yarchive.net/comp/linux/cmov.html

Ignore the P4 bashing, a cmov is 2 cycles on Sandy Bridge. Linus' points about extending the critical path still apply.

/jakob

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130123/404a63de/attachment.html>


More information about the llvm-commits mailing list