[llvm-bugs] [Bug 31344] New: Optimize 16-bit ORs with '0'

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Dec 10 20:48:04 PST 2016


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

            Bug ID: 31344
           Summary: Optimize 16-bit ORs with '0'
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: AVR
          Assignee: unassignedbugs at nondot.org
          Reporter: dylanmckay34 at gmail.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Currently if we get an OR with immediate '0xff00', we will emit two ORI
instructions, one to OR with '0xff' and one to OR with '0x00'.

ORing with 0 is unnecessary and it just causes an extra redundant operation.


Let's optimise this operation in the pseudo instruction expander.

-- 
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/20161211/50e2c315/attachment.html>


More information about the llvm-bugs mailing list