Displaying 1 result from an estimated 1 matches for "instrprofilingfile".
2014 May 12
3
[LLVMdev] Questions about LLVM PGO and autoFDO
...ntation based PGO:
clang -O2 -fprofile-instr-generate test.c -o a.out
./a.out (then default.profraw is generated)
clang -O2 -fprofile-instr-use=default.profraw test.c -o a.out
error: pgo data file has malformed function entry
I found that the run-time function "writeFile" in InstrProfilingFile.cpp didn't write '\n'.
But when parsing the profile data, in CodeGenPGO.cpp line 56, it tried to find '\n' like below:
CurPtr = strchr(CurPtr, '\n');
if (!CurPtr) {
ReportBadPGOData(CGM, "pgo data file has malformed function entry");
return;
}...