diff options
author | Clement Courbet <courbet@google.com> | 2018-06-01 14:49:06 +0000 |
---|---|---|
committer | Clement Courbet <courbet@google.com> | 2018-06-01 14:49:06 +0000 |
commit | 6eb680a40d587a56f6ffc54c8331c2f61e1bf7cf (patch) | |
tree | eb04a888d2b4bda3de6cd57b1e7bf92f3eed7468 /llvm/docs/CommandGuide/llvm-exegesis.rst | |
parent | 0da27c7c8a1e4a5acf50aadaaf709d4de5132131 (diff) | |
download | bcm5719-llvm-6eb680a40d587a56f6ffc54c8331c2f61e1bf7cf.tar.gz bcm5719-llvm-6eb680a40d587a56f6ffc54c8331c2f61e1bf7cf.zip |
[llvm-exegesis] Fix off-by-one in llvm-exegesis documentation.
llvm-svn: 333759
Diffstat (limited to 'llvm/docs/CommandGuide/llvm-exegesis.rst')
-rw-r--r-- | llvm/docs/CommandGuide/llvm-exegesis.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/docs/CommandGuide/llvm-exegesis.rst b/llvm/docs/CommandGuide/llvm-exegesis.rst index bd7132700d0..1cba9788584 100644 --- a/llvm/docs/CommandGuide/llvm-exegesis.rst +++ b/llvm/docs/CommandGuide/llvm-exegesis.rst @@ -67,7 +67,7 @@ To measure the latency of all instructions for the host architecture, run: .. 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' |