diff options
author | Kazu Hirata <kazu@google.com> | 2022-06-25 11:56:50 -0700 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2022-06-25 11:56:50 -0700 |
commit | 3b7c3a654c9175f41ac871a937cbcae73dfb3c5d (patch) | |
tree | 21094939ea6c8b726c481d7b28eaf4ea27c64008 /llvm/tools/llvm-mca/Views | |
parent | aa8feeefd3ac6c78ee8f67bf033976fc7d68bc6d (diff) | |
download | llvm-3b7c3a654c9175f41ac871a937cbcae73dfb3c5d.zip llvm-3b7c3a654c9175f41ac871a937cbcae73dfb3c5d.tar.gz llvm-3b7c3a654c9175f41ac871a937cbcae73dfb3c5d.tar.bz2 |
Revert "Don't use Optional::hasValue (NFC)"
This reverts commit aa8feeefd3ac6c78ee8f67bf033976fc7d68bc6d.
Diffstat (limited to 'llvm/tools/llvm-mca/Views')
-rw-r--r-- | llvm/tools/llvm-mca/Views/InstructionInfoView.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/tools/llvm-mca/Views/InstructionInfoView.cpp b/llvm/tools/llvm-mca/Views/InstructionInfoView.cpp index d3f9738..28915e5 100644 --- a/llvm/tools/llvm-mca/Views/InstructionInfoView.cpp +++ b/llvm/tools/llvm-mca/Views/InstructionInfoView.cpp @@ -70,8 +70,8 @@ void InstructionInfoView::printView(raw_ostream &OS) const { else if (IIVDEntry.Latency < 100) TempStream << ' '; - if (IIVDEntry.RThroughput) { - double RT = IIVDEntry.RThroughput.value(); + if (IIVDEntry.RThroughput.hasValue()) { + double RT = IIVDEntry.RThroughput.getValue(); TempStream << format("%.2f", RT) << ' '; if (RT < 10.0) TempStream << " "; |