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

            Bug ID: 31357
           Summary: DAGCombiner::MatchBswapHword logic is wrong for OR
                    trees
           Product: new-bugs
           Version: trunk
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedb...@nondot.org
          Reporter: jle...@knupath.com
                CC: llvm-bugs@lists.llvm.org
    Classification: Unclassified

Created attachment 17750
  --> https://llvm.org/bugs/attachment.cgi?id=17750&action=edit
Fix to DAGCombiner.cpp and two new unit test files

The existing code only looks at half of the tree when matching bswap + rol
patterns ending in an OR tree (as opposed to a cascade).

Proposed patch with test coverage is attached

-- 
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