OSDN Git Service

[llvm-exegesis] Avoid yaml parser from calling sscanf for obvious non-matches (PR39102)
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 3 Oct 2018 14:51:09 +0000 (14:51 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 3 Oct 2018 14:51:09 +0000 (14:51 +0000)
commit445c3f14aba44cd391e1c6fff3cd4ecf128ee4e2
tree8ec5529d6b6577b25753ac976f1c3f00deb964d6
parent0fbe023b079e83c4c1d0e938e999d9ba1625494e
[llvm-exegesis] Avoid yaml parser from calling sscanf for obvious non-matches (PR39102)

deserializeMCOperand - ensure that we at least match the first character of the sscanf pattern before calling

This reduces llvm-exegesis uops analysis of the instructions supported from btver2 from 5m13s to 2m1s on debug builds.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@343690 91177308-0d34-0410-b5e6-96231b3b80d8
tools/llvm-exegesis/lib/BenchmarkResult.cpp