[PATCH] D132849: [llc] Use CPUStr instead of calling codegen::getMCPU(). NFC

Lu Weining via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 30 17:49:30 PDT 2022


This revision was automatically updated to reflect the committed changes.
Closed by commit rG5a7b39ce75a7: [llc] Use CPUStr instead of calling codegen::getMCPU(). NFC (authored by SixWeining).

Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D132849

Files:
  llvm/tools/llc/llc.cpp


Index: llvm/tools/llc/llc.cpp
===================================================================
--- llvm/tools/llc/llc.cpp
+++ llvm/tools/llc/llc.cpp
@@ -467,8 +467,8 @@
   };
 
   auto MAttrs = codegen::getMAttrs();
-  bool SkipModule = codegen::getMCPU() == "help" ||
-                    (!MAttrs.empty() && MAttrs.front() == "help");
+  bool SkipModule =
+      CPUStr == "help" || (!MAttrs.empty() && MAttrs.front() == "help");
 
   CodeGenOpt::Level OLvl = CodeGenOpt::Default;
   switch (OptLevel) {


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D132849.456826.patch
Type: text/x-patch
Size: 509 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220831/91fedd32/attachment.bin>


More information about the llvm-commits mailing list