[llvm] [AArch64] AArch64ISelDAGToDAG.cpp - disable inlining on MSVC release builds (PR #115292)

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 7 02:41:11 PST 2024


https://github.com/RKSimon created https://github.com/llvm/llvm-project/pull/115292

Similar to #110986 - disabling inlining on MSVC release builds avoids an excessive build time issue affecting all recent versions of CL.EXE

Fixes #114425

>From c0104e4a48b27e8b066497a8fa54080d1602bf66 Mon Sep 17 00:00:00 2001
From: Simon Pilgrim <llvm-dev at redking.me.uk>
Date: Thu, 7 Nov 2024 10:39:18 +0000
Subject: [PATCH] [AArch64] AArch64ISelDAGToDAG.cpp - disable inlining on MSVC
 release builds

Similar to #110986 - disabling inlining on MSVC release builds avoids an excessive build time issue affecting all recent versions of CL.EXE

Fixes #114425
---
 llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp b/llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp
index 511ab4fe7e9a39..97050ba2476ff5 100644
--- a/llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp
+++ b/llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp
@@ -31,6 +31,11 @@ using namespace llvm;
 #define DEBUG_TYPE "aarch64-isel"
 #define PASS_NAME "AArch64 Instruction Selection"
 
+// https://github.com/llvm/llvm-project/issues/114425
+#if defined(_WIN32) && !defined(__clang__) && !defined(NDEBUG)
+#pragma inline_depth(0)
+#endif
+
 //===--------------------------------------------------------------------===//
 /// AArch64DAGToDAGISel - AArch64 specific code to select AArch64 machine
 /// instructions for SelectionDAG operations.



More information about the llvm-commits mailing list