nhaehnle added a comment. So with a check in readcyclecounter.ll to ensure that lgkmcnt is present after s_memtime, this revision looks good to me (don't know if somebody else wants to chime in on the s_memtime vs. s_memrealtime issue). http://reviews.llvm.org/D15873