[llvm-bugs] [Bug 35342] New: [LICM] Assertion failed: (isa<X>(Val) && "cast<Ty>() argument of incompatible type!")

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Nov 17 02:32:49 PST 2017


https://bugs.llvm.org/show_bug.cgi?id=35342

            Bug ID: 35342
           Summary: [LICM] Assertion failed: (isa<X>(Val) && "cast<Ty>()
                    argument of incompatible type!")
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Loop Optimizer
          Assignee: unassignedbugs at nondot.org
          Reporter: igor at azulsystems.com
                CC: llvm-bugs at lists.llvm.org

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.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20171117/907bf0dc/attachment.html>


More information about the llvm-bugs mailing list