<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </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 --- - Infinite loop in opt -instcombine"
   href="http://llvm.org/bugs/show_bug.cgi?id=21576">21576</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Infinite loop in opt -instcombine
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>tools
          </td>
        </tr>

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

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

        <tr>
          <th>OS</th>
          <td>Windows NT
          </td>
        </tr>

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

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>opt
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>russell_gallop@sn.scee.net
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>$ cat bugpoint-reduced-simplified.ll
define void @autogen_SD2047654124() {
BB:
  %A = alloca <1 x double>
  %L = load <1 x double>* %A
  %B = frem <1 x double> %L, %L
  br label %CF33

CF33:                                             ; preds = %CF33, %BB
  br i1 undef, label %CF33, label %CF34

CF34:                                             ; preds = %CF34, %CF33
  %Tr = fptrunc <1 x double> %B to <1 x float>
  %E13 = extractelement <1 x float> %Tr, i32 0
  br i1 undef, label %CF34, label %CF35

CF35:                                             ; preds = %CF34
  %B29 = fdiv float 0xC08DAF2180000000, %E13
  ret void
}
$ opt -instcombine bugpoint-reduced-simplified.ll -o out.ll

Gets stuck in infinite loop using ever-increasing amounts of memory.

Reproduced with trunk 222002.</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>