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

            Bug ID: 50090
           Summary: Nary Reassociate pass still hangs on min/max code
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Scalar Optimizations
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]

Created attachment 24794
  --> https://bugs.llvm.org/attachment.cgi?id=24794&action=edit
Test case, hangs reassociation

Attached test case still hangs between 2 min/min reassociation patterns, even
after commit 36b932d6 (which fixed one similar case)

opt --debug --nary-reassociate small.ll

NARY: Found common sub-expr:   %tmp5 = call i64 @llvm.umin.i64(i64 %tmp4, i64
16384)
NARY: Deleting:    %tmp10 = call i64 @llvm.umin.i64(i64 %tmp9, i64 16384)
NARY: Inserting:   %tmp10.nary = call i64 @llvm.umin.i64(i64 %tmp5, i64 %tmp)
NARY: Found common sub-expr:   %tmp2 = call i64 @llvm.umin.i64(i64 %tmp, i64
%tmp1)
NARY: Deleting:    %tmp10.nary = call i64 @llvm.umin.i64(i64 %tmp5, i64 %tmp)
NARY: Inserting:   %tmp10.nary.nary = call i64 @llvm.umin.i64(i64 %tmp2, i64
16384)
NARY: Found common sub-expr:   %tmp5 = call i64 @llvm.umin.i64(i64 %tmp4, i64
16384)
NARY: Deleting:    %tmp10.nary.nary = call i64 @llvm.umin.i64(i64 %tmp2, i64
16384)
NARY: Inserting:   %tmp10.nary.nary.nary = call i64 @llvm.umin.i64(i64 %tmp5,
i64 undef)
.....

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

Reply via email to