================ @@ -56,7 +56,14 @@ using namespace CodeGen; // Experiment to make sanitizers easier to debug static llvm::cl::opt<bool> ClSanitizeDebugDeoptimization( "ubsan-unique-traps", llvm::cl::Optional, - llvm::cl::desc("Deoptimize traps for UBSAN so there is 1 trap per check"), + llvm::cl::desc("Deoptimize traps for UBSAN so there is 1 trap per check."), + llvm::cl::init(false)); + +// TODO: Introduce frontend options to enabled per sanitizers, similar to +// `fsanitize-trap`. +static llvm::cl::opt<bool> ClSanitizeExpHot( + "ubsan-exp-hot", llvm::cl::Optional, + llvm::cl::desc("Pass UBSAN checks if `llvm.experimental.hot()` is true."), ---------------- jroelofs wrote:
I'm not sure how best to do it, but it might be useful to have a remark that fires when one of these is optimized out. https://github.com/llvm/llvm-project/pull/84851 _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits