[llvm] [llvm-mca] Add -skip-unsupported-instructions option (PR #89733)
Peter Waller via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 24 10:07:40 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});
----------------
peterwaller-arm wrote:
The `continue` above is dropping instructions, so it seemed logical to me to avoid inserting these dropped instructions into other data structures since they're now "gone".
https://github.com/llvm/llvm-project/pull/89733
More information about the llvm-commits
mailing list