[llvm-bugs] [Bug 27344] __builtin_expect(cond, 0) always produces CMOV under -O2

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Apr 26 15:33:05 PDT 2016


Sanjay Patel <spatel+llvm at rotateright.com> changed:

           What    |Removed                     |Added
             Status|REOPENED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #12 from Sanjay Patel <spatel+llvm at rotateright.com> ---
(In reply to comment #11)
> Patches posted for review:
> http://reviews.llvm.org/D19435
> http://reviews.llvm.org/D19488

After the corresponding commits:

This example should now work: we should see branches instead of cmov

There are still other cases where we lose the metadata when transforming a
branch into a select though, so if you're not getting the expected codegen in
any other examples, please do file a bug. I'll keep trying to fix those spots.

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160426/a422a411/attachment-0001.html>

More information about the llvm-bugs mailing list