[PATCH] D54774: [GlobalOpt] Optimize comdat dynamic initializers on Windows
Eli Friedman via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 21 14:31:29 PST 2018
efriedma added inline comments.
================
Comment at: llvm/lib/Transforms/Utils/CtorUtils.cpp:116
+ bool AssumeComdatInitializers =
+ Triple(M.getTargetTriple()).isWindowsMSVCEnvironment();
+
----------------
If the IR doesn't have enough information to distinguish between the Microsoft and Itanium ABI cases, we should extend the IR to contain more information. Checking the triple means we're depending on semantic guarantees which are not documented in LangRef, and many not apply to non-C++ languages.
https://reviews.llvm.org/D54774
More information about the llvm-commits
mailing list