Skip to content

Again: faster tracing when user tracing is off (#17949)

Michael Peyton Jones requested to merge michaelpj/ghc:mpj/trace-user into master

Another updated version of !5316 (closed).

I made userEventTracingEnabled impure, and exported it.

I've verified that we get the code that we want, as before we end up with some redundant reads that get optimized away in Cmm. Unfortunately due to #24589 a mere inline + INLINABLE on getTraceFlags is insufficient and I had to mark it as INLINE.

Edited by Sylvain Henry

Merge request reports