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: unassignedb...@nondot.org
          Reporter: dylanmcka...@gmail.com
                CC: llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to