<html>
    <head>
      <base href="http://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Use after free in SCEV AA"
   href="http://bugs.llvm.org/show_bug.cgi?id=32240">32240</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Use after free in SCEV AA
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libraries
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Global Analyses
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>keno@alumni.harvard.edu
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Consider the following bugpoint reduced test case:
```
; ModuleID = 'bugpoint-reduced-simplified.bc'
source_filename = "bugpoint-output-e3ce3dd.bc"
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%GalaxySigmaDerivs.2.8.11.14.17.62.68 = type { %SMatrix.0.6.9.12.15.60.66,
%SArray.1.7.10.13.16.61.67 }
%SMatrix.0.6.9.12.15.60.66 = type { [9 x double] }
%SArray.1.7.10.13.16.61.67 = type { [27 x double] }

define void @julia_benchmark2_68791(i8**,
%GalaxySigmaDerivs.2.8.11.14.17.62.68*) #0 {
if22.2.2.2:
  %2 = getelementptr i8*, i8** %0, i64 7
  %3 = bitcast i8** %2 to i8***
  %4 = load i8**, i8*** %3, align 8, !tbaa !1
  store i8** %4, i8*** undef, align 8, !tbaa !6
  %sig_sf_j.sroa.0.0..sroa_idx = getelementptr inbounds
%GalaxySigmaDerivs.2.8.11.14.17.62.68, %GalaxySigmaDerivs.2.8.11.14.17.62.68*
%1, i64 0, i32 0, i32 0, i64 0
  %sig_sf_j.sroa.0.0.copyload = load double, double*
%sig_sf_j.sroa.0.0..sroa_idx, align 1
  %5 = fmul double undef, %sig_sf_j.sroa.0.0.copyload
  ret void
}

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

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

!0 = !{i32 1, !"Debug Info Version", i32 3}
!1 = !{!2, !2, i64 0}
!2 = !{!"jtbaa_mutab", !3, i64 0}
!3 = !{!"jtbaa_value", !4, i64 0}
!4 = !{!"jtbaa_data", !5, i64 0}
!5 = !{!"jtbaa"}
!6 = !{!7, !7, i64 0}
!7 = !{!"jtbaa_gcframe", !5, i64 0}
```

Running `opt -scev-aa -da -gvn` on this file crashes opt, because gvn tries to
access a SCEV instance that got freed in
`ScalarEvolutionWrapperPass::releaseMemory`.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>