[PATCH] D137054: [X86][Driver] Remove stale FIXME. NFC

Craig Topper via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Oct 30 19:52:17 PDT 2022


craig.topper created this revision.
craig.topper added reviewers: pengfei, RKSimon.
Herald added a subscriber: StephenFan.
Herald added a project: All.
craig.topper requested review of this revision.
Herald added subscribers: cfe-commits, MaskRay.
Herald added a project: clang.

We use getHostCPUFeatures in x86::getX86TargetFeatures so I think
this FIXME is taken care of already.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D137054

Files:
  clang/lib/Driver/ToolChains/Arch/X86.cpp


Index: clang/lib/Driver/ToolChains/Arch/X86.cpp
===================================================================
--- clang/lib/Driver/ToolChains/Arch/X86.cpp
+++ clang/lib/Driver/ToolChains/Arch/X86.cpp
@@ -30,9 +30,6 @@
 
     // FIXME: Reject attempts to use -march=native unless the target matches
     // the host.
-    //
-    // FIXME: We should also incorporate the detected target features for use
-    // with -native.
     CPU = llvm::sys::getHostCPUName();
     if (!CPU.empty() && CPU != "generic")
       return std::string(CPU);


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D137054.471893.patch
Type: text/x-patch
Size: 546 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20221031/a9c655d7/attachment.bin>


More information about the cfe-commits mailing list