summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-exegesis/lib/Latency.cpp
diff options
context:
space:
mode:
authorClement Courbet <courbet@google.com>2018-06-25 13:44:27 +0000
committerClement Courbet <courbet@google.com>2018-06-25 13:44:27 +0000
commit0e8bf4e5aa7dc53bbeaf073639bcda239feab901 (patch)
tree6ad502e0294cb33ffca2863d94ea83ecdaa6e612 /llvm/tools/llvm-exegesis/lib/Latency.cpp
parent0ac29350b5c081fa0dd469ca618a5857d659f3b0 (diff)
downloadbcm5719-llvm-0e8bf4e5aa7dc53bbeaf073639bcda239feab901.tar.gz
bcm5719-llvm-0e8bf4e5aa7dc53bbeaf073639bcda239feab901.zip
[llvm-exegesis][NFC] Remove unnecessary member variables.
llvm-svn: 335470
Diffstat (limited to 'llvm/tools/llvm-exegesis/lib/Latency.cpp')
-rw-r--r--llvm/tools/llvm-exegesis/lib/Latency.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/tools/llvm-exegesis/lib/Latency.cpp b/llvm/tools/llvm-exegesis/lib/Latency.cpp
index a221323734f..3cc0d85be8b 100644
--- a/llvm/tools/llvm-exegesis/lib/Latency.cpp
+++ b/llvm/tools/llvm-exegesis/lib/Latency.cpp
@@ -72,13 +72,13 @@ LatencyBenchmarkRunner::generateTwoInstructionPrototype(
const Instruction &Instr,
const AliasingConfigurations &SelfAliasing) const {
std::vector<unsigned> Opcodes;
- Opcodes.resize(MCInstrInfo.getNumOpcodes());
+ Opcodes.resize(State.getInstrInfo().getNumOpcodes());
std::iota(Opcodes.begin(), Opcodes.end(), 0U);
std::shuffle(Opcodes.begin(), Opcodes.end(), randomGenerator());
for (const unsigned OtherOpcode : Opcodes) {
if (OtherOpcode == Instr.Description->Opcode)
continue;
- const auto &OtherInstrDesc = MCInstrInfo.get(OtherOpcode);
+ const auto &OtherInstrDesc = State.getInstrInfo().get(OtherOpcode);
if (auto E = isInfeasible(OtherInstrDesc)) {
llvm::consumeError(std::move(E));
continue;
@@ -96,7 +96,7 @@ LatencyBenchmarkRunner::generateTwoInstructionPrototype(
setRandomAliasing(Back, OtherII, ThisII);
SnippetPrototype Prototype;
Prototype.Explanation = llvm::formatv("creating cycle through {0}.",
- MCInstrInfo.getName(OtherOpcode));
+ State.getInstrInfo().getName(OtherOpcode));
Prototype.Snippet.push_back(std::move(ThisII));
Prototype.Snippet.push_back(std::move(OtherII));
return std::move(Prototype);
@@ -107,7 +107,7 @@ LatencyBenchmarkRunner::generateTwoInstructionPrototype(
llvm::Expected<SnippetPrototype>
LatencyBenchmarkRunner::generatePrototype(unsigned Opcode) const {
- const auto &InstrDesc = MCInstrInfo.get(Opcode);
+ const auto &InstrDesc = State.getInstrInfo().get(Opcode);
if (auto E = isInfeasible(InstrDesc))
return std::move(E);
const Instruction Instr(InstrDesc, RATC);
OpenPOWER on IntegriCloud