[llvm] [llvm-exegesis] Add loop-register snippet annotation (PR #82873)

Clement Courbet via llvm-commits llvm-commits at lists.llvm.org
Sun Feb 25 23:09:14 PST 2024


================
@@ -509,22 +509,42 @@ void benchmarkMain() {
   }
 
   const auto Opcodes = getOpcodesOrDie(State);
+  std::vector<BenchmarkCode> Configurations;
+
+  unsigned LoopRegister =
+      State.getExegesisTarget().getDefaultLoopCounterRegister(
+          State.getTargetMachine().getTargetTriple());
+
+  if (Opcodes.empty()) {
----------------
legrosbuffle wrote:

Why move this code ?

https://github.com/llvm/llvm-project/pull/82873


More information about the llvm-commits mailing list