[llvm-branch-commits] [llvm] [LowerAllowCheck] Add llvm.allow.sanitize.* intrinsics (PR #172029)
Marco Elver via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Thu Dec 18 03:05:20 PST 2025
https://github.com/melver updated https://github.com/llvm/llvm-project/pull/172029
>From 7c8dbba4f20841f2759fb7ee9a7c012facf056ac Mon Sep 17 00:00:00 2001
From: Marco Elver <elver at google.com>
Date: Thu, 18 Dec 2025 12:05:08 +0100
Subject: [PATCH] fix
Created using spr 1.3.8-beta.1
---
llvm/lib/Transforms/Instrumentation/LowerAllowCheckPass.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/llvm/lib/Transforms/Instrumentation/LowerAllowCheckPass.cpp b/llvm/lib/Transforms/Instrumentation/LowerAllowCheckPass.cpp
index d4c23ffe9a723..7a950036d9b6b 100644
--- a/llvm/lib/Transforms/Instrumentation/LowerAllowCheckPass.cpp
+++ b/llvm/lib/Transforms/Instrumentation/LowerAllowCheckPass.cpp
@@ -156,7 +156,7 @@ static bool lowerAllowChecks(Function &F, const BlockFrequencyInfo &BFI,
for (auto [I, V] : ReplaceWithValue) {
++NumChecksTotal;
- if (!V) // If the final value is false, the check is considered removed
+ if (!V) // If the final value is false, the check is considered removed.
++NumChecksRemoved;
I->replaceAllUsesWith(ConstantInt::getBool(I->getType(), V));
I->eraseFromParent();
More information about the llvm-branch-commits
mailing list