[llvm-bugs] [Bug 47857] New: Remove mov before sbb reg, reg

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Oct 15 05:33:23 PDT 2020


https://bugs.llvm.org/show_bug.cgi?id=47857

            Bug ID: 47857
           Summary: Remove mov before sbb reg, reg
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Backend: X86
          Assignee: unassignedbugs at nondot.org
          Reporter: david.bolvansky at gmail.com
                CC: craig.topper at gmail.com, llvm-bugs at lists.llvm.org,
                    llvm-dev at redking.me.uk, pengfei.wang at intel.com,
                    spatel+llvm at rotateright.com

As shown here:
https://godbolt.org/z/Tfzj6n

It should be possible to remove mov before sbb with same operands.

..
        mov     esi, 0
        sbb     rsi, rsi
        and     esi, 38
        add     r9, rsi
...

-- 
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/20201015/08ddfa82/attachment.html>


More information about the llvm-bugs mailing list