Tsan pass does 2 optimizations based on presence of calls:
- Don't emit function entry/exit callbacks if there are no calls
and no memory accesses.
- Combine read/write of the same variable if there are no
intervening calls.
However, all debug info is represented as CallInst as well
and thus effectively disables these optimizations.
Don't consider debug info calls as calls.