diff options
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' |