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

The unwind destination does not have a landingpad instruction! #90

Open
Behroosh opened this issue May 12, 2016 · 2 comments
Open

The unwind destination does not have a landingpad instruction! #90

Behroosh opened this issue May 12, 2016 · 2 comments

Comments

@Behroosh
Copy link
Contributor

I am working with "bfs" from the suggested test programs. I managed to instrument it when the target register is the destination register (dstreg). However, I get the following error message (in the instrumentation phase) when having source registers (allsrcreg) as target registers.

The unwind destination does not have a landingpad instruction!
invoke void @_ZNSt5dequeIiSaIiEE9push_backERKi(%"class.std::deque"* %wavefront, i32* %5)
to label %8 unwind label %73, !llfi_index !18
The unwind destination does not have a landingpad instruction!
%14 = invoke zeroext i1 @_ZNKSt5dequeIiSaIiEE5emptyEv(%"class.std::deque"* %wavefront)
to label %15 unwind label %73, !llfi_index !25
The unwind destination does not have a landingpad instruction!
%18 = invoke i32* @ZNSt5dequeIiSaIiEE5frontEv(%"class.std::deque"* %wavefront)
to label %19 unwind label %73, !llfi_index !28
The unwind destination does not have a landingpad instruction!
invoke void @ZNSt5dequeIiSaIiEE9pop_frontEv(%"class.std::deque"* %wavefront)
to label %21 unwind label %73, !llfi_index !31
The unwind destination does not have a landingpad instruction!
invoke void @ZNSt5dequeIiSaIiEE9push_backERKi(%"class.std::deque"* %wavefront, i32* %id)
to label %68 unwind label %73, !llfi_index !81
LandingPadInst not the first non-PHI instruction in the block.
%74 = landingpad { i8
, i32 } personality i8
bitcast (i32 (...)* @gxx_personality_v0 to i8)
cleanup, !llfi_index !88
The unwind destination does not have a landingpad instruction!
invoke void @ZNSt5dequeIiSaIiEED2Ev(%"class.std::deque" %wavefront)
to label %87 unwind label %93, !llfi_index !93
LandingPadInst not the first non-PHI instruction in the block.
%94 = landingpad { i8
, i32 } personality i8
bitcast (i32 (...)* @gxx_personality_v0 to i8)
catch i8
null, !llfi_index !113
Broken module found, compilation aborted!
0 opt 0x00000000011f2942 llvm::sys::PrintStackTrace(_IO_FILE*) + 34
1 opt 0x00000000011f24f4
2 libpthread.so.0 0x00007f46bc78f340
3 libc.so.6 0x00007f46bbbd0cc9 gsignal + 57
4 libc.so.6 0x00007f46bbbd40d8 abort + 328
5 opt 0x0000000001117601
6 opt 0x0000000001120f42
7 opt 0x00000000010fb2cf llvm::FPPassManager::runOnFunction(llvm::Function&) + 623
8 opt 0x00000000010fb35b llvm::FPPassManager::runOnModule(llvm::Module&) + 43
9 opt 0x00000000010fd6c5 llvm::legacy::PassManagerImpl::run(llvm::Module&) + 709
10 opt 0x0000000000572264 main + 2452
11 libc.so.6 0x00007f46bbbbbec5 __libc_start_main + 245
12 opt 0x000000000058d40d
Stack dump:
0. Program arguments: /ubc/ece/home/kp/grads/behsan/Workload/LLFI_Build/llvm/bin/opt -load /ubc/ece/home/kp/grads/behsan/Workload/LLFI_Build/LLFI2/bin/../llvm_passes/llfi-passes.so -profilingpass -insttype -excludeinst=ret -includeinst=all -regloc -allsrcreg -o /ubc/ece/home/kp/grads/behsan/Workload/LLFI_Build/SampleTest/bfs-allsrcreg/llfi/bfs-profiling.ll /ubc/ece/home/kp/grads/behsan/Workload/LLFI_Build/SampleTest/bfs-allsrcreg/llfi/bfs-llfi_index.ll -S

  1. Running pass 'Function Pass Manager' on module '/ubc/ece/home/kp/grads/behsan/Workload/LLFI_Build/SampleTest/bfs-allsrcreg/llfi/bfs-llfi_index.ll'.
  2. Running pass 'Module Verifier' on function '@_Z7BFS_CPUP4NodeP4EdgePiS3_i'

ERROR: there was an error during running the instrumentation pass, please follow the provided instructions for instrument.

@Behroosh
Copy link
Contributor Author

I also used the latest version of LLFI and still got the same error message.

@zezhang
Copy link

zezhang commented Oct 3, 2017

Hey, I also have the same problem. Just want to ask did you fix up the problem yet?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants