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

Errors I met when running this code. #4

Open
xiaofengwo opened this issue Jun 13, 2019 · 2 comments
Open

Errors I met when running this code. #4

xiaofengwo opened this issue Jun 13, 2019 · 2 comments
Assignees

Comments

@xiaofengwo
Copy link

I happen to be doing the same research,and found this awesome job.
This code runs very well, but I still met some errors about some test cases, for example, the 'susan' in Mibench.
Now I just make some null check, and dropped the error data, but I don't know if it will affect the analysis result.
The errors I met is as follows:

  1. In file $Trident-master/llvm-2.9/lib/Transforms/CmpProfileValue/Hello.cpp,line 123 and 124:
    // // Convert float to double FPExtInst* convertInst1 = new FPExtInst(cmpInst->getOperand(0), Type::getDoubleTy(appModule->getContext()), "convt1", instPos); FPExtInst* convertInst2 = new FPExtInst(cmpInst->getOperand(1), Type::getDoubleTy(appModule->getContext()), "convt2", instPos);
    fails the assertion " assert(castIsValid(getOpcode(), S, Ty) && "Illegal FPExt");"at some time.

  2. In file $Trident-master/llvm-2.9/lib/Transforms/StaticInstModeling/Hello.cpp, line 143:
    printf("%ld call %s: %.6f, %.6f, %.6f\n", curInstIndex, dyn_cast<CallInst>(curInst)->getCalledFunction()->getName(), curNode->accumPR, curNode->accumMR, curNode->accumCR);
    will report error some times.

@cclinus
Copy link
Contributor

cclinus commented Jun 13, 2019

Hi. Thanks for reporting the issue. Can you please provide us more details (i.e., IR code of your test case and steps to reproduce the bug etc) ?

@xiaofengwo
Copy link
Author

Thanks very much for your quickly reply.
In this issue, I reported two errors I met.
The first one is about LLVMCPV.so.
The details is as follows, with the IR code file
basicmath_small_O0-llfi_index.zip

/home/xiaofengwo/Trident-master/llvm-2.9_my_build/bin/opt -S -load /home/xiaofengwo/Trident-master/llvm-2.9_my_build/lib/LLVMCPV.so -bishe_insert basicmath_small_O0-llfi_index.ll -o basicmath_small_profile_LLVMCPV.ll

The errors are:

opt: /home/xiaofengwo/Trident-master/llvm-2.9/lib/VMCore/Instructions.cpp:2555: llvm::FPExtInst::FPExtInst(llvm::Value*, const llvm::Type*, const llvm::Twine&, llvm::Instruction*): Assertion `castIsValid(getOpcode(), S, Ty) && "Illegal FPExt"' failed.
Stack dump:
0. Program arguments: /home/xiaofengwo/Trident-master/llvm-2.9_my_build/bin/opt -S -load /home/xiaofengwo/Trident-master/llvm-2.9_my_build/lib/LLVMCPV.so -bishe_insert basicmath_small_O0-llfi_index.ll -o basicmath_small_profile_LLVMCPV.ll

  1. Running pass 'test function exist' on module 'basicmath_small_O0-llfi_index.ll'.
    Aborted (core dumped)
    ===========================================================

The second one is about SIM.so.
The details is as follows, with the IR code file
susan_code_mod_pass-llfi_index.zip
and 'select_stuples_file'
simplified_inst_tuples.zip

xiaofengwo@xiaofengwo-virtual-machine:~/sdb1/rl_compiler_benchmarks/mibench/susan/llfi$ /home/xiaofengwo/Trident-master/llvm-2.9_my_build/bin/opt -S -load /home/xiaofengwo/Trident-master/llvm-2.9_my_build/lib/SIM.so -bishe_insert -select_index=8111 susan_code_mod_pass-llfi_index.ll -o null -select_stuples_file=simplified_inst_tuples.txt

The errors are:

Stack dump:
0. Program arguments: /home/xiaofengwo/Trident-master/llvm-2.9_my_build/bin/opt -S -load /home/xiaofengwo/Trident-master/llvm-2.9_my_build/lib/SIM.so -bishe_insert -select_index=8111 susan_code_mod_pass-llfi_index.ll -o null -select_stuples_file=simplified_inst_tuples.txt

  1. Running pass 'test function exist' on module 'susan_code_mod_pass-llfi_index.ll'.
    Segmentation fault (core dumped)
    ===========================================================

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

3 participants