================
@@ -3485,12 +3485,19 @@ Generic_GCC::TranslateArgs(const 
llvm::opt::DerivedArgList &Args,
 
   // Add the bound architecture to the arguments list if present.
   if (!BoundArch.empty()) {
-    options::ID Opt =
-        getTriple().isARM() || getTriple().isPPC() || getTriple().isAArch64()
-            ? options::OPT_mcpu_EQ
-            : options::OPT_march_EQ;
-    DAL->eraseArg(Opt);
-    DAL->AddJoinedArg(nullptr, Opts.getOption(Opt), BoundArch);
+    if (getTriple().isAMDGPU()) {
----------------
arsenm wrote:

As far as naming -march kind of makes more sense for a GPU 

https://github.com/llvm/llvm-project/pull/198627
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to