Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

llc crash in an rather innocent bitcode #3

Open
whchung opened this issue Jul 24, 2014 · 0 comments
Open

llc crash in an rather innocent bitcode #3

whchung opened this issue Jul 24, 2014 · 0 comments
Assignees
Labels

Comments

@whchung
Copy link

whchung commented Jul 24, 2014

Overview

llc fails to lower a seemly legitimate bitcode. The same bitcode works fine in SPIR path.

Test case archive

https://multicorewareinc.egnyte.com/h-s/20140724/UIdC4tbXko

Test case

2_Cxx_Lang_Exte_2_x_general_Statements_ControlFlow_Test.21

Command

llc -O2 -march=hsail-64 -o kernel.brig kernel.cl.opt.bc

Error Message

0 llc 0x00000000012ea0ff
1 llc 0x00000000012e9df8
2 libpthread.so.0 0x00007f52885c0340
3 llc 0x000000000115a716 llvm::DomTreeNodeBasellvm::BasicBlock::getBlock read_only() + 12
4 llc 0x000000000098de01 llvm::HSAILControlDependencyAnalysis::runOnMachineFunction(llvm::MachineFunction&) + 331
5 llc 0x0000000000df936b llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 95
6 llc 0x00000000011fa8b1 llvm::FPPassManager::runOnFunction(llvm::Function&) + 289
7 llc 0x00000000011faa70 llvm::FPPassManager::runOnModule(llvm::Module&) + 102
8 llc 0x00000000011fad69 llvm::MPPassManager::runOnModule(llvm::Module&) + 395
9 llc 0x00000000011fb2cc llvm::PassManagerImpl::run(llvm::Module&) + 120
10 llc 0x00000000011fb4ad llvm::PassManager::run(llvm::Module&) + 39
11 llc 0x00000000008a9fb3 main + 4398
12 libc.so.6 0x00007f52879e1ec5 __libc_start_main + 245
13 llc 0x00000000008a8837
Stack dump:
0. Program arguments: /opt/amd/bin/llc -march=hsail-64 kernel.cl.opt.ll -o kernel.brig

  1. Running pass 'Function Pass Manager' on module 'kernel.cl.opt.ll'.
  2. Running pass 'HSAIL control dependency analysis' on function '@ZZ9test_mainvEN3_EC__419__cxxamp_trampolineE_3iiiiiiPiN11Concurrency11access_typeE'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants