diff options
Diffstat (limited to 'llvm/tools/llvm-exegesis/lib/Latency.cpp')
-rw-r--r-- | llvm/tools/llvm-exegesis/lib/Latency.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/llvm-exegesis/lib/Latency.cpp b/llvm/tools/llvm-exegesis/lib/Latency.cpp index ec92d936de3..602b379faf3 100644 --- a/llvm/tools/llvm-exegesis/lib/Latency.cpp +++ b/llvm/tools/llvm-exegesis/lib/Latency.cpp @@ -49,7 +49,7 @@ computeAliasingInstructions(const LLVMState &State, const Instruction &Instr, for (const unsigned OtherOpcode : Opcodes) { if (OtherOpcode == Instr.Description->getOpcode()) continue; - const Instruction OtherInstr(State, OtherOpcode); + const Instruction &OtherInstr = State.getIC().getInstr(OtherOpcode); if (OtherInstr.hasMemoryOperands()) continue; if (Instr.hasAliasingRegistersThrough(OtherInstr)) |