[llvm-bugs] [Bug 32607] New: Crash in NewGVN if run after LICM

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Apr 10 13:51:24 PDT 2017


http://bugs.llvm.org/show_bug.cgi?id=32607

            Bug ID: 32607
           Summary: Crash in NewGVN if run after LICM
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Scalar Optimizations
          Assignee: unassignedbugs at nondot.org
          Reporter: keno at alumni.harvard.edu
                CC: llvm-bugs at lists.llvm.org

Consider the following bugpoint-reduced test case:
```
; ModuleID = 'bugpoint-reduced-simplified.bc'
source_filename = "bugpoint-output-0d3dd22.bc"
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

define hidden void @"julia_populate_gal_fsm!_20586"() #0 {
top:
  br label %if

if:                                               ; preds = %if, %top
  %0 = load double, double* undef, align 8, !tbaa !1, !noalias !5
  %1 = fadd double %0, undef
  store double %1, double* undef, align 8, !tbaa !1, !noalias !5
  br i1 false, label %L50, label %if

L50:                                              ; preds = %if
  ret void
}

attributes #0 = { "no-frame-pointer-elim"="true" }

!llvm.module.flags = !{!0}

!0 = !{i32 1, !"Debug Info Version", i32 3}
!1 = !{!2, !2, i64 0}
!2 = !{!"jtbaa_arraybuf", !3, i64 0}
!3 = !{!"jtbaa_data", !4, i64 0}
!4 = !{!"jtbaa"}
!5 = !{!6}
!6 = !{!"aliasscope", !7}
!7 = !{!"accum_galaxy_pos!"}
```

```
opt -licm -newgvn bugpoint-reduced-simplified.ll
opt: /home/ubuntu/llvm/lib/Transforms/Scalar/NewGVN.cpp:2167: void
{anonymous}::NewGVN::updateProcessedCount(llvm::Value*): Assertion
`ProcessedCount[V] < 100 && "Seem to have processed the same Value a lot"'
failed.
```

Now, before bugpoint, the failure looked different (and the input wasn't an
infinite loop), so this is possibly just something that bugpoint exposed, but I
can rerun on the original file once this is fixed.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170410/2467a5d0/attachment.html>


More information about the llvm-bugs mailing list