<div dir="ltr">You can try "-mllvm -x86-cmov-converter=false". That should keep it as a cmov, but might give you performance issues elsewhere.<div><br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">~Craig</div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Apr 27, 2020 at 12:14 AM Levo DeLellis via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>I believe you all can access the test file and the diff in my bug report <a href="https://bugs.llvm.org/show_bug.cgi?id=45690" target="_blank">https://bugs.llvm.org/show_bug.cgi?id=45690</a></div><div><br></div><div>In short, I'm experimenting with optimization and wrote branchless code -O2 generates a jump instruction causing my loop to be twice as slow. I changed the jne+movl to cmove and my loop seems to take half as long.</div><div><br></div><div>I'm a little worried that this will interfere with other optimizations I make in the same function (bug report is a small reproduce). Is there a temporary workaround I can use? I'm thinking no and that I would have to suck it up. But I seen stranger things so I thought I'd ask. I guess for now I'll experiment allowing the slow jumps and I'll hand change it once I'm done optimizing that function<br></div></div>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote></div>