[PATCH] D48638: [Sparc] Add support for the cycle counter available in GR740

James Y Knight via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 13 11:59:50 PDT 2018


jyknight accepted this revision.
jyknight added a comment.
This revision is now accepted and ready to land.

I suppose if it was useful, you could use a loop to read both halves of the counter safely, e.g. `upper=ASR22; loop: lower=ASR23; newupper=ASR22; if (newupper != upper) { upper = newupper; goto loop; }}`.

But I have no idea if that would be useful, so this seems fine.


Repository:
  rL LLVM

https://reviews.llvm.org/D48638





More information about the llvm-commits mailing list