summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-exegesis/lib/Latency.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/tools/llvm-exegesis/lib/Latency.cpp')
-rw-r--r--llvm/tools/llvm-exegesis/lib/Latency.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/llvm/tools/llvm-exegesis/lib/Latency.cpp b/llvm/tools/llvm-exegesis/lib/Latency.cpp
index 731efbf5515..12bc8cd32b0 100644
--- a/llvm/tools/llvm-exegesis/lib/Latency.cpp
+++ b/llvm/tools/llvm-exegesis/lib/Latency.cpp
@@ -62,18 +62,18 @@ LatencyBenchmarkRunner::generateTwoInstructionPrototype(
const AliasingConfigurations Back(OtherInstr, Instr);
if (Forward.empty() || Back.empty())
continue;
- InstructionInstance ThisII(Instr);
- InstructionInstance OtherII(OtherInstr);
+ InstructionBuilder ThisIB(Instr);
+ InstructionBuilder OtherIB(OtherInstr);
if (!Forward.hasImplicitAliasing())
- setRandomAliasing(Forward, ThisII, OtherII);
+ setRandomAliasing(Forward, ThisIB, OtherIB);
if (!Back.hasImplicitAliasing())
- setRandomAliasing(Back, OtherII, ThisII);
+ setRandomAliasing(Back, OtherIB, ThisIB);
SnippetPrototype Prototype;
Prototype.Explanation =
llvm::formatv("creating cycle through {0}.",
State.getInstrInfo().getName(OtherOpcode));
- Prototype.Snippet.push_back(std::move(ThisII));
- Prototype.Snippet.push_back(std::move(OtherII));
+ Prototype.Snippet.push_back(std::move(ThisIB));
+ Prototype.Snippet.push_back(std::move(OtherIB));
return std::move(Prototype);
}
return llvm::make_error<BenchmarkFailure>(
OpenPOWER on IntegriCloud