<html>
    <head>
      <base href="https://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 - JumpThreading generate infinite loop thus casue stack dump"
   href="https://bugs.llvm.org/show_bug.cgi?id=50119">50119</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>JumpThreading generate infinite loop thus casue stack dump
          </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>Linux
          </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>Scalar Optimizations
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>guopeilin1@huawei.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=24802" name="attach_24802" title="A test case file">attachment 24802</a> <a href="attachment.cgi?id=24802&action=edit" title="A test case file">[details]</a></span>
A test case file

Using opt -jump-threading test-case.ll, cause a stack dump with the following
result:
.
.
.
#203 0x0000aaaacf183220 getValueFromConditionImpl(llvm::Value*, llvm::Value*,
bool, llvm::SmallDenseMap<llvm::Value*, llvm::ValueLatticeElement, 4u,
llvm::DenseMapInfo<llvm::Value*>, llvm::detail::DenseMapPair<llvm::Value*,
llvm::ValueLatticeElement> >&)
/home2/gpl/open-source/llvm-project/llvm/lib/Analysis/LazyValueInfo.cpp:1223:71
#204 0x0000aaaacf183328 getValueFromCondition(llvm::Value*, llvm::Value*, bool,
llvm::SmallDenseMap<llvm::Value*, llvm::ValueLatticeElement, 4u,
llvm::DenseMapInfo<llvm::Value*>, llvm::detail::DenseMapPair<llvm::Value*,
llvm::ValueLatticeElement> >&)
/home2/gpl/open-source/llvm-project/llvm/lib/Analysis/LazyValueInfo.cpp:1234:15
#205 0x0000aaaacf183220 getValueFromConditionImpl(llvm::Value*, llvm::Value*,
bool, llvm::SmallDenseMap<llvm::Value*, llvm::ValueLatticeElement, 4u,
llvm::DenseMapInfo<llvm::Value*>, llvm::detail::DenseMapPair<llvm::Value*,
llvm::ValueLatticeElement> >&)
/home2/gpl/open-source/llvm-project/llvm/lib/Analysis/LazyValueInfo.cpp:1223:71
#206 0x0000aaaacf183328 getValueFromCondition(llvm::Value*, llvm::Value*, bool,
llvm::SmallDenseMap<llvm::Value*, llvm::ValueLatticeElement, 4u,
llvm::DenseMapInfo<llvm::Value*>, llvm::detail::DenseMapPair<llvm::Value*,
llvm::ValueLatticeElement> >&)
/home2/gpl/open-source/llvm-project/llvm/lib/Analysis/LazyValueInfo.cpp:1234:15
#207 0x0000aaaacf183220 getValueFromConditionImpl(llvm::Value*, llvm::Value*,
bool, llvm::SmallDenseMap<llvm::Value*, llvm::ValueLatticeElement, 4u,
llvm::DenseMapInfo<llvm::Value*>, llvm::detail::DenseMapPair<llvm::Value*,
llvm::ValueLatticeElement> >&)
/home2/gpl/open-source/llvm-project/llvm/lib/Analysis/LazyValueInfo.cpp:1223:71
#208 0x0000aaaacf183328 getValueFromCondition(llvm::Value*, llvm::Value*, bool,
llvm::SmallDenseMap<llvm::Value*, llvm::ValueLatticeElement, 4u,
llvm::DenseMapInfo<llvm::Value*>, llvm::detail::DenseMapPair<llvm::Value*,
llvm::ValueLatticeElement> >&)
/home2/gpl/open-source/llvm-project/llvm/lib/Analysis/LazyValueInfo.cpp:1234:15
#209 0x0000aaaacf183220 getValueFromConditionImpl(llvm::Value*, llvm::Value*,
bool, llvm::SmallDenseMap<llvm::Value*, llvm::ValueLatticeElement, 4u,
llvm::DenseMapInfo<llvm::Value*>, llvm::detail::DenseMapPair<llvm::Value*,
llvm::ValueLatticeElement> >&)
/home2/gpl/open-source/llvm-project/llvm/lib/Analysis/LazyValueInfo.cpp:1223:71
#210 0x0000aaaacf183328 getValueFromCondition(llvm::Value*, llvm::Value*, bool,
llvm::SmallDenseMap<llvm::Value*, llvm::ValueLatticeElement, 4u,
llvm::DenseMapInfo<llvm::Value*>, llvm::detail::DenseMapPair<llvm::Value*,
llvm::ValueLatticeElement> >&)
/home2/gpl/open-source/llvm-project/llvm/lib/Analysis/LazyValueInfo.cpp:1234:15
#211 0x0000aaaacf183220 getValueFromConditionImpl(llvm::Value*, llvm::Value*,
bool, llvm::SmallDenseMap<llvm::Value*, llvm::ValueLatticeElement, 4u,
llvm::DenseMapInfo<llvm::Value*>, llvm::detail::DenseMapPair<llvm::Value*,
llvm::ValueLatticeElement> >&)
/home2/gpl/open-source/llvm-project/llvm/lib/Analysis/LazyValueInfo.cpp:1223:71
.
.
.
.
It seems there has an infinite loop when compiling this test-case.ll</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>