[llvm] [llvm-mca] Add -skip-unsupported-instructions option (PR #89733)

Michael Maitland via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 24 09:34:52 PDT 2024


================
@@ -597,14 +610,25 @@ int main(int argc, char **argv) {
           // Default case.
           WithColor::error() << toString(std::move(NewE));
         }
+        if (SkipUnsupportedInstructions) {
+          DroppedInsts.insert(&MCI);
+          continue;
+        }
         return 1;
       }
 
       IPP->postProcessInstruction(Inst.get(), MCI);
-
+      InstToInstruments.insert({&MCI, Instruments});
----------------
michaelmaitland wrote:

It isn't clear to me why this needs to be relocated. Could you please clarify?

https://github.com/llvm/llvm-project/pull/89733


More information about the llvm-commits mailing list