[PATCH] D149068: [llvm-mca][RISCV] Fix checking if data valid in createInstrument

Michael Maitland via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 26 16:53:55 PDT 2023


This revision was automatically updated to reflect the committed changes.
Closed by commit rG919382004f4e: [llvm-mca][RISCV] Fix checking if data valid in createInstrument (authored by michaelmaitland).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D149068/new/

https://reviews.llvm.org/D149068

Files:
  llvm/lib/Target/RISCV/MCA/RISCVCustomBehaviour.cpp


Index: llvm/lib/Target/RISCV/MCA/RISCVCustomBehaviour.cpp
===================================================================
--- llvm/lib/Target/RISCV/MCA/RISCVCustomBehaviour.cpp
+++ llvm/lib/Target/RISCV/MCA/RISCVCustomBehaviour.cpp
@@ -81,7 +81,7 @@
                       << '\n');
     return nullptr;
   }
-  if (RISCVLMULInstrument::isDataValid(Data)) {
+  if (!RISCVLMULInstrument::isDataValid(Data)) {
     LLVM_DEBUG(dbgs() << "RVCB: Bad data for instrument kind " << Desc << ": "
                       << Data << '\n');
     return nullptr;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D149068.517392.patch
Type: text/x-patch
Size: 554 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230426/d5b9c6fd/attachment.bin>


More information about the llvm-commits mailing list