[llvm] r333759 - [llvm-exegesis] Fix off-by-one in llvm-exegesis documentation.
Clement Courbet via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 1 07:49:06 PDT 2018
Author: courbet
Date: Fri Jun 1 07:49:06 2018
New Revision: 333759
URL: http://llvm.org/viewvc/llvm-project?rev=333759&view=rev
Log:
[llvm-exegesis] Fix off-by-one in llvm-exegesis documentation.
Modified:
llvm/trunk/docs/CommandGuide/llvm-exegesis.rst
Modified: llvm/trunk/docs/CommandGuide/llvm-exegesis.rst
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/CommandGuide/llvm-exegesis.rst?rev=333759&r1=333758&r2=333759&view=diff
==============================================================================
--- llvm/trunk/docs/CommandGuide/llvm-exegesis.rst (original)
+++ llvm/trunk/docs/CommandGuide/llvm-exegesis.rst Fri Jun 1 07:49:06 2018
@@ -67,7 +67,7 @@ To measure the latency of all instructio
.. code-block:: bash
#!/bin/bash
- readonly INSTRUCTIONS=$(grep INSTRUCTION_LIST_END build/lib/Target/X86/X86GenInstrInfo.inc | cut -f2 -d=)
+ readonly INSTRUCTIONS=$(($(grep INSTRUCTION_LIST_END build/lib/Target/X86/X86GenInstrInfo.inc | cut -f2 -d=) - 1))
for INSTRUCTION in $(seq 1 ${INSTRUCTIONS});
do
./build/bin/llvm-exegesis -mode=latency -opcode-index=${INSTRUCTION} | sed -n '/---/,$p'
More information about the llvm-commits
mailing list