[llvm] [Option] Add Condition for build-conditional library options (PR #230898)
Alexis Engelke via llvm-commits
llvm-commits at lists.llvm.org
Sun Oct 11 10:44:09 PDT 2026
================
@@ -143,6 +143,14 @@ static const unsigned MaxIVUsers = 200;
/// the salvaging is not too expensive for the compiler.
static const unsigned MaxSCEVSalvageExpressionSize = 64;
+static bool stressIVChain(const ScalarOptions &Opts) {
+#ifndef NDEBUG
+ return Opts.stress_ivchain;
+#else
+ return false;
+#endif
----------------
aengelke wrote:
I wonder if it's really beneficial to go though the extra effort of having this option only in assert builds instead of simply having it all the time, just like almost all other options...
https://github.com/llvm/llvm-project/pull/230898
More information about the llvm-commits
mailing list