[LLVMbugs] [Bug 15782] New: optimize bitwise operations across bswap

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Apr 18 10:45:41 PDT 2013


http://llvm.org/bugs/show_bug.cgi?id=15782

            Bug ID: 15782
           Summary: optimize bitwise operations across bswap
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Scalar Optimizations
          Assignee: unassignedbugs at nondot.org
          Reporter: b.r.longbons at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Currently (using debian package of 3.3~svn177638), code like the following
cannot be optimized:

uint32_t frob(uint32_t a, uint32_t b)
{
    return __builtin_bswap32(__builtin_bswap32(a) | __builtin_bswap32(b));
}

-- 
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/20130418/b22563dd/attachment.html>


More information about the llvm-bugs mailing list