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

            Bug ID: 31345
           Summary: Optimize 16-bit ANDs with '1'
           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 AND with immediate '0xff00', we will emit two ANDI
instructions, one to AND with '0xff' and one to AND with '0x00'.

ANDing with 255 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