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

Martin Storsjö via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 18 07:24:49 PST 2024


================
@@ -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)
----------------
mstorsjo wrote:

But this condition as it stands, `defined(_WIN32) && !defined(__clang__)` will also match for GCC.

The correct one for singling out MSVC but not clang in msvc mode, would be `defined(_MSC_VER) && !defined(__clang__)`.

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


More information about the llvm-commits mailing list