Closed Qining closed 11 years ago
The issue is resolved.
Another problem for this benchmark, the previous one has been resolved.
Problem: Can not find the pthread library when instrumenting (example: undefined reference to 'pthread_barrier_init') The IR of the program (water-nsquared) runs well in "lli"
OS: Xubuntu 12.04 (Should be same with Ubuntu12.04)
I consider the problem above 'undefined reference' as the llvm-gcc linking choice rather than the LLFI problem, so my suggestion is to add -l pthread during the instrument
Program: water-nsquared, from SPLASH-2 Optimization level: O2 Compiler: llvm-gcc 4.2.2 Linker: llvm-ld
Input: Default input provided in SPLASH-2 Run in One thread mode
Problem: When doing instrument, follow assertion triggerd: Assertion isa(ret) && "Last instruction is not return instruction" failed.
Location: llvm_passes/Utils.cpp:16:llvm::Instruction* llfi:getTermInstofFunction(llvm::Function*)