<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 - [Loop Vectorize] getOrCreateTripCount fails with pointer comparisons"
   href="https://bugs.llvm.org/show_bug.cgi?id=41179">41179</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[Loop Vectorize] getOrCreateTripCount fails with pointer comparisons
          </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>Windows NT
          </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>llvm-dev@redking.me.uk
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>ayal.zaks@intel.com, florian_hahn@apple.com, llvm-bugs@lists.llvm.org, sanjoy@playingwithpointers.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre><a href="https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=13350">https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=13350</a>

; ModuleID = 'bugpoint-reduced-simplified.bc'
source_filename = "llvm/test/Transforms/LoopVectorize/PowerPC/pr30990.ll"
target triple = "powerpc64-unknown-linux-gnu"

define void @foo() {
entry:
  br label %while.body

while.body:                                       ; preds = %while.body, %entry
  %count.09 = phi i32 [ %add, %while.body ], [ 0, %entry ]
  %add = add nsw i32 -1, %count.09
  %G = getelementptr i8, i8* undef, i32 %add
  %cmp = icmp ult i8* undef, %G
  br i1 %cmp, label %while.body, label %while.end.loopexit

while.end.loopexit:                               ; preds = %while.body
  ret void
}

opt -loop-vectorize fuzz.ll -S -o -

opt: /home/simon/LLVM/llvm/lib/Analysis/ScalarEvolution.cpp:4079: const
llvm::SCEV* llvm::ScalarEvolution::getNoopOrZeroExtend(const llvm::SCEV*,
llvm::Type*): Assertion `getTypeSizeInBits(SrcTy) <= getTypeSizeInBits(Ty) &&
"getNoopOrZeroExtend cannot truncate!"' failed.</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>