[PATCH] D132849: [llc] Use CPUStr instead of calling codegen::getMCPU(). NFC
Lu Weining via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 29 05:34:14 PDT 2022
SixWeining created this revision.
SixWeining added reviewers: MaskRay, serge-sans-paille.
Herald added a subscriber: StephenFan.
Herald added a project: All.
SixWeining requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Repository:
rG LLVM Github Monorepo
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.456320.patch
Type: text/x-patch
Size: 509 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220829/23d62bd2/attachment.bin>
More information about the llvm-commits
mailing list