[PATCH] D18164: [tsan] Do not instrument reads/writes to instruction profile counters.

Anna Zaks via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 16 17:48:25 PDT 2016


zaks.anna added a comment.

> Fine with that too if that is a must, but what is wrong with test configuration  modified to avoid this 

>  known limitation? 

>  According to Anna, the following configs are tested:


I was not talking about any specific test configurations. This is what compiler/tools users could choose to use. We (as compiler vendors) have no control over this.

> - coverage + tsan

> - coverage + asan .. If the motivation is to save build time (by merging intrumentations), How about just

> - coverage + asan

> - tsan -... This is also faster.  There does not seem to be any value to repeatedly enable coverage.


We do not really control what the users of these tools choose to use in their workflow / CI. It is possible they want to use coverage and TSan and not care about ASan. Our choice is to either return an error when both coverage and tsan are requested or just to support this configuration. I think it would be very surprising to users to see that they cannot use coverage with TSan. Also, I do not see a reason why it should be disallowed.


http://reviews.llvm.org/D18164





More information about the llvm-commits mailing list