[PATCH] D46357: [GCOV] Emit the writeout function as nested loops of global data.
Wei Mi via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed May 2 09:56:09 PDT 2018
wmi added a comment.
The generated code looks great. We may want to do the similar thing in @__llvm_gcov_flush. It generated a bunch of memset in straight line code in a loop of CountersBySP.
call void @llvm.memset.p0i8.i64(i8* align 16 bitcast ([2 x i64]* @__llvm_gcov_ctr to i8*), i8 0, i64 16, i1 false)
call void @llvm.memset.p0i8.i64(i8* align 16 bitcast ([12 x i64]* @__llvm_gcov_ctr.6 to i8*), i8 0, i64 96, i1 false)
call void @llvm.memset.p0i8.i64(i8* align 16 bitcast ([2 x i64]* @__llvm_gcov_ctr.7 to i8*), i8 0, i64 16, i1 false)
...
Repository:
rL LLVM
https://reviews.llvm.org/D46357
More information about the llvm-commits
mailing list