[clang] [Clang][LTO][GISel] Propagate `-fglobal-siel` to LTO (PR #69747)

Min-Yih Hsu via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 24 09:12:26 PDT 2023


================
@@ -694,6 +694,16 @@ void tools::addLTOOptions(const ToolChain &ToolChain, const ArgList &Args,
     CmdArgs.push_back(Args.MakeArgString(Twine(PluginOptPrefix) +
                                          ParallelismOpt + Parallelism));
 
+  // Pass down GlobalISel options.
+  if (Arg *A = Args.getLastArg(options::OPT_fglobal_isel,
+                               options::OPT_fno_global_isel)) {
+    // Parsing -fno-global-isel explicitly gives architectures that enable GISel
+    // by default (e.g. AArch64) a chance to disable it.
----------------
mshockwave wrote:

Done

https://github.com/llvm/llvm-project/pull/69747


More information about the cfe-commits mailing list