<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 - opt crashes with 'Assertion `ResultPass && "getAnalysis*() called on an analysis that was not " "'required' by pass!"' failed.' when doing "opt -loop-reduce -iv-users -scalarize-masked-mem-intrin""
   href="https://bugs.llvm.org/show_bug.cgi?id=38511">38511</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>opt crashes with 'Assertion `ResultPass && "getAnalysis*() called on an analysis that was not " "'required' by pass!"' failed.' when doing "opt -loop-reduce -iv-users -scalarize-masked-mem-intrin"
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </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>new bugs
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>mikael.holmen@ericsson.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Running
 opt -loop-reduce -iv-users -scalarize-masked-mem-intrin -S -o - bbi-16750.ll

yields

opt: ../include/llvm/PassAnalysisSupport.h:236: AnalysisType
&llvm::Pass::getAnalysisID(AnalysisID) const [AnalysisType =
llvm::TargetTransformInfoWrapperPass]: Assertion `ResultPass && "getAnalysis*()
called on an analysis that was not " "'required' by pass!"' failed.
Stack dump:
0.      Program arguments: /data/repo/llvm-patch/build-all/bin/opt -loop-reduce
-iv-users -scalarize-masked-mem-intrin -S -o - bbi-16750.ll 
1.      Running pass 'Function Pass Manager' on module 'bbi-16750.ll'.
2.      Running pass 'Scalarize Masked Memory Intrinsics' on function '@f'
#0 0x0000000002087e54 PrintStackTraceSignalHandler(void*)
(/data/repo/llvm-patch/build-all/bin/opt+0x2087e54)
#1 0x0000000002085fb0 llvm::sys::RunSignalHandlers()
(/data/repo/llvm-patch/build-all/bin/opt+0x2085fb0)
#2 0x00000000020881b8 SignalHandler(int)
(/data/repo/llvm-patch/build-all/bin/opt+0x20881b8)
#3 0x00007f9805cf4330 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x10330)
#4 0x00007f98048e3c37 gsignal
/build/eglibc-ripdx6/eglibc-2.19/signal/../nptl/sysdeps/unix/sysv/linux/raise.c:56:0
#5 0x00007f98048e7028 abort
/build/eglibc-ripdx6/eglibc-2.19/stdlib/abort.c:91:0
#6 0x00007f98048dcbf6 __assert_fail_base
/build/eglibc-ripdx6/eglibc-2.19/assert/assert.c:92:0
#7 0x00007f98048dcca2 (/lib/x86_64-linux-gnu/libc.so.6+0x2fca2)
#8 0x00000000018b7fc6 (anonymous
namespace)::ScalarizeMaskedMemIntrin::runOnFunction(llvm::Function&)
(/data/repo/llvm-patch/build-all/bin/opt+0x18b7fc6)
#9 0x0000000001af9383 llvm::FPPassManager::runOnFunction(llvm::Function&)
(/data/repo/llvm-patch/build-all/bin/opt+0x1af9383)
#10 0x0000000001af9598 llvm::FPPassManager::runOnModule(llvm::Module&)
(/data/repo/llvm-patch/build-all/bin/opt+0x1af9598)
#11 0x0000000001af9a4a llvm::legacy::PassManagerImpl::run(llvm::Module&)
(/data/repo/llvm-patch/build-all/bin/opt+0x1af9a4a)
#12 0x00000000007556e4 main (/data/repo/llvm-patch/build-all/bin/opt+0x7556e4)
#13 0x00007f98048cef45 __libc_start_main
/build/eglibc-ripdx6/eglibc-2.19/csu/libc-start.c:321:0
#14 0x000000000073de2d _start
(/data/repo/llvm-patch/build-all/bin/opt+0x73de2d)
Abort

We're nomrally not running -scalarize-masked-mem-intrin.
Found this when running random passes on random input.</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>