diff options
| author | Guillaume Chatelet <gchatelet@google.com> | 2018-10-24 11:55:06 +0000 |
|---|---|---|
| committer | Guillaume Chatelet <gchatelet@google.com> | 2018-10-24 11:55:06 +0000 |
| commit | da11b85606f532a1b4aac96d5f9c92eded60e568 (patch) | |
| tree | 33e71f89ba50ac382c55f97db69b5194a9325df1 /llvm/tools/llvm-exegesis/llvm-exegesis.cpp | |
| parent | 083addf75192ff07eccd002eceeeacd085054217 (diff) | |
| download | bcm5719-llvm-da11b85606f532a1b4aac96d5f9c92eded60e568.tar.gz bcm5719-llvm-da11b85606f532a1b4aac96d5f9c92eded60e568.zip | |
[llvm-exegesis] Implements a cache of Instruction objects.
llvm-svn: 345130
Diffstat (limited to 'llvm/tools/llvm-exegesis/llvm-exegesis.cpp')
| -rw-r--r-- | llvm/tools/llvm-exegesis/llvm-exegesis.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/llvm-exegesis/llvm-exegesis.cpp b/llvm/tools/llvm-exegesis/llvm-exegesis.cpp index ea991420039..689a1e097c6 100644 --- a/llvm/tools/llvm-exegesis/llvm-exegesis.cpp +++ b/llvm/tools/llvm-exegesis/llvm-exegesis.cpp @@ -147,7 +147,7 @@ getOpcodesOrDie(const llvm::MCInstrInfo &MCInstrInfo) { // Generates code snippets for opcode `Opcode`. static llvm::Expected<std::vector<BenchmarkCode>> generateSnippets(const LLVMState &State, unsigned Opcode) { - const Instruction Instr(State, Opcode); + const Instruction &Instr = State.getIC().getInstr(Opcode); const llvm::MCInstrDesc &InstrDesc = *Instr.Description; // Ignore instructions that we cannot run. if (InstrDesc.isPseudo()) |

