<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 - [LICM] Assertion failed: (isa<X>(Val) && "cast<Ty>() argument of incompatible type!")"
   href="https://bugs.llvm.org/show_bug.cgi?id=35342">35342</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[LICM] Assertion failed: (isa<X>(Val) && "cast<Ty>() argument of incompatible type!")
          </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>Loop Optimizer
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>igor@azulsystems.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>After rL317335 we started to observe following failure on one of our internal
tests:

Assertion failed: (isa<X>(Val) && "cast<Ty>() argument of incompatible type!"),
function cast, file
/Users/igor/Projects/llvm-svn/include/llvm/Support/Casting.h, line 255.
0  opt                      0x000000010fe83068
llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 40
1  opt                      0x000000010fe83756 SignalHandler(int) + 486
2  libsystem_platform.dylib 0x00007fffe9369b3a _sigtramp + 26
3  libsystem_platform.dylib 0x0000000000000020 _sigtramp + 382297344
4  libsystem_c.dylib        0x00007fffe91ee420 abort + 129
5  libsystem_c.dylib        0x00007fffe91b5893 basename_r + 0
6  opt                      0x000000010fc72fd3
llvm::sinkRegion(llvm::DomTreeNodeBase<llvm::BasicBlock>*, llvm::AAResults*,
llvm::LoopInfo*, llvm::DominatorTree*, llvm::TargetLibraryInfo*, llvm::Loop*,
llvm::AliasSetTracker*, llvm::LoopSafetyInfo*,
llvm::OptimizationRemarkEmitter*) + 8899
7  opt                      0x000000010fc70124 (anonymous
namespace)::LoopInvariantCodeMotion::runOnLoop(llvm::Loop*, llvm::AAResults*,
llvm::LoopInfo*, llvm::DominatorTree*, llvm::TargetLibraryInfo*,
llvm::ScalarEvolution*, llvm::OptimizationRemarkEmitter*, bool) + 1268
8  opt                      0x000000010fc7657c (anonymous
namespace)::LegacyLICMPass::runOnLoop(llvm::Loop*, llvm::LPPassManager&) + 1148
9  opt                      0x000000010f37dcaf
llvm::LPPassManager::runOnFunction(llvm::Function&) + 1263
10 opt                      0x000000010f8fae3d
llvm::FPPassManager::runOnFunction(llvm::Function&) + 541
11 opt                      0x000000010f8fb123
llvm::FPPassManager::runOnModule(llvm::Module&) + 67
12 opt                      0x000000010f8fb66b
llvm::legacy::PassManagerImpl::run(llvm::Module&) + 955
13 opt                      0x000000010e5fbedd main + 11725
14 libdyld.dylib            0x00007fffe915a235 start + 1
Stack dump:
0.      Program arguments: ../llvm-svn/buildRA/bin/opt -licm test.ll
1.      Running pass 'Function Pass Manager' on module 'test.ll'.
2.      Running pass 'Loop Pass Manager' on function '@test'
3.      Running pass 'Loop Invariant Code Motion' on basic block '%not_zero'
[1]    15799 abort      ../llvm-svn/buildRA/bin/opt -licm test.

Reduced test case is attached.</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>