Dynamic Instruction Count

Hi, I am an undergraduate student, I am working on LLVM Pass writing. I want to collect Dynamic Instruction Count but i am unable to do t.

i have followed a code (GITHUB CODE) but i am having this error:
error: Invalid value (Producer: ‘LLVM7.0.0’ Reader: ‘LLVM 3.8.0’)

please help.

New versions of LLVM can read bitcode generated by older versions, but the opposite is not true: LLVM 3.8 cannot read bitcode generated by LLVM 7.0.

-Eli