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

            Bug ID: 46118
           Summary: Large numbers of (e.g., 27) redundant vxorpd generated
                    on loop entry
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: unassignedb...@nondot.org
          Reporter: elr...@gmail.com
                CC: htmldevelo...@gmail.com, llvm-bugs@lists.llvm.org

The generated code does the following:
vxorp 27 registers
checks if the loop iterates at least once. If it doesn't, jump.
vxorp those exact same 27 registers
enters loop.

The second set of 27 vxorpd is unnecessary, those registers are all already 0.

Godbolt:
https://godbolt.org/z/nsc7kc

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to