rSerge added a comment. @rengolin , did you first apply patch https://reviews.llvm.org/D28624 before testing the current patch? Especially the last quoted failed test seems to behave as if emission of XRay table is still broken. https://reviews.llvm.org/D28623