[llvm-branch-commits] [llvm] [asan] isInterestingAlloca: remove the isAllocaPromotable condition (PR #77221)
https://github.com/MaskRay closed https://github.com/llvm/llvm-project/pull/77221 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
[llvm-branch-commits] [llvm] [asan] isInterestingAlloca: remove the isAllocaPromotable condition (PR #77221)
@@ -1279,9 +1278,6 @@ bool AddressSanitizer::isInterestingAlloca(const AllocaInst ) { (AI.getAllocatedType()->isSized() && vitalybuka wrote: Yes, either keep as ClSkipPromotableAllocas=false, just in case, or remove it. Something similar but not the same is not needed. https://github.com/llvm/llvm-project/pull/77221 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
[llvm-branch-commits] [llvm] [asan] isInterestingAlloca: remove the isAllocaPromotable condition (PR #77221)
https://github.com/vitalybuka edited https://github.com/llvm/llvm-project/pull/77221 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
[llvm-branch-commits] [llvm] [asan] isInterestingAlloca: remove the isAllocaPromotable condition (PR #77221)
https://github.com/vitalybuka approved this pull request. https://github.com/llvm/llvm-project/pull/77221 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
[llvm-branch-commits] [llvm] [asan] isInterestingAlloca: remove the isAllocaPromotable condition (PR #77221)
https://github.com/MaskRay updated https://github.com/llvm/llvm-project/pull/77221 >From 46d21cd0327e352491be77bb86740167984c0209 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Wed, 14 Feb 2024 23:26:34 -0800 Subject: [PATCH 1/2] fix cl::desc Created using spr 1.3.4 --- llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp b/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp index 2e8d9bd748df82..029c07636d1784 100644 --- a/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp +++ b/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp @@ -347,7 +347,7 @@ static cl::opt static cl::opt ClInstrumentUninterestingAllocas( "asan-instrument-uninteresting-allocas", -cl::desc("Do not instrument uninteresting allocas"), cl::Hidden); +cl::desc("Instrument uninteresting allocas"), cl::Hidden); static cl::opt ClConstructorKind( "asan-constructor-kind", >From c2eaeada2ce0d4d59810c497eda8e9c0d8a417c7 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Thu, 15 Feb 2024 00:25:03 -0800 Subject: [PATCH 2/2] revert an undeeded clang-format after restoring the original version of the patch Created using spr 1.3.4 --- llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp b/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp index a115a8967dcb7d..4c29e02ea0df38 100644 --- a/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp +++ b/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp @@ -346,7 +346,8 @@ static cl::opt cl::Hidden, cl::init(true)); static cl::opt ClConstructorKind( -"asan-constructor-kind", cl::desc("Sets the ASan constructor kind"), +"asan-constructor-kind", +cl::desc("Sets the ASan constructor kind"), cl::values(clEnumValN(AsanCtorKind::None, "none", "No constructors"), clEnumValN(AsanCtorKind::Global, "global", "Use global constructors")), ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
[llvm-branch-commits] [llvm] [asan] isInterestingAlloca: remove the isAllocaPromotable condition (PR #77221)
https://github.com/MaskRay updated https://github.com/llvm/llvm-project/pull/77221 >From 46d21cd0327e352491be77bb86740167984c0209 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Wed, 14 Feb 2024 23:26:34 -0800 Subject: [PATCH] fix cl::desc Created using spr 1.3.4 --- llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp b/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp index 2e8d9bd748df82..029c07636d1784 100644 --- a/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp +++ b/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp @@ -347,7 +347,7 @@ static cl::opt static cl::opt ClInstrumentUninterestingAllocas( "asan-instrument-uninteresting-allocas", -cl::desc("Do not instrument uninteresting allocas"), cl::Hidden); +cl::desc("Instrument uninteresting allocas"), cl::Hidden); static cl::opt ClConstructorKind( "asan-constructor-kind", ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
[llvm-branch-commits] [llvm] [asan] isInterestingAlloca: remove the isAllocaPromotable condition (PR #77221)
https://github.com/MaskRay edited https://github.com/llvm/llvm-project/pull/77221 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
[llvm-branch-commits] [llvm] [asan] isInterestingAlloca: remove the isAllocaPromotable condition (PR #77221)
https://github.com/MaskRay updated https://github.com/llvm/llvm-project/pull/77221 >From 46d21cd0327e352491be77bb86740167984c0209 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Wed, 14 Feb 2024 23:26:34 -0800 Subject: [PATCH] fix cl::desc Created using spr 1.3.4 --- llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp b/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp index 2e8d9bd748df82..029c07636d1784 100644 --- a/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp +++ b/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp @@ -347,7 +347,7 @@ static cl::opt static cl::opt ClInstrumentUninterestingAllocas( "asan-instrument-uninteresting-allocas", -cl::desc("Do not instrument uninteresting allocas"), cl::Hidden); +cl::desc("Instrument uninteresting allocas"), cl::Hidden); static cl::opt ClConstructorKind( "asan-constructor-kind", ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
[llvm-branch-commits] [llvm] [asan] isInterestingAlloca: remove the isAllocaPromotable condition (PR #77221)
https://github.com/MaskRay edited https://github.com/llvm/llvm-project/pull/77221 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
[llvm-branch-commits] [llvm] [asan] isInterestingAlloca: remove the isAllocaPromotable condition (PR #77221)
@@ -1279,9 +1278,6 @@ bool AddressSanitizer::isInterestingAlloca(const AllocaInst ) { (AI.getAllocatedType()->isSized() && MaskRay wrote: In `ClInstrumentUninterestingAllocas=0 mode`, `!(SSGI && SSGI->isSafe(AI))` can ignore some `AllocaInst`s that `SSGI->stackAccessIsSafe(*Inst)` will return false. My original thought is that `ClInstrumentUninterestingAllocas` isn't useful and we should just remove it. If you think `ClInstrumentUninterestingAllocas` is unnecessary, I will remove it. https://github.com/llvm/llvm-project/pull/77221 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
[llvm-branch-commits] [llvm] [asan] isInterestingAlloca: remove the isAllocaPromotable condition (PR #77221)
vitalybuka wrote: > We can set `-mllvm -stack-safety-run` to force `getInfo`, but it seems that > the current lazy `getInfo` works as intended once this patch is applied. No, we don't need any new flag. We need to trigger getInfo before any module modification, e.g. at getResult if some function without alloca replaces mem intrinsic, results of calculation of StackSafetyGlobalAnalysis after that will be incorrect (still it's just missed optimization, unnecessary instrumentation). Any way, no need to do so in this patch. https://github.com/llvm/llvm-project/pull/77221 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
[llvm-branch-commits] [llvm] [asan] isInterestingAlloca: remove the isAllocaPromotable condition (PR #77221)
@@ -1279,9 +1278,6 @@ bool AddressSanitizer::isInterestingAlloca(const AllocaInst ) { (AI.getAllocatedType()->isSized() && vitalybuka wrote: ClSkipPromotableAllocas on line 1315 is confusing, and maybe unnecessary? but after your rename it's still confusing this check applies only to accesses, there is other stuff done to instrument alloca, and ClSkipPromotableAllocas was applied there thru isInterestingAlloca https://github.com/llvm/llvm-project/pull/77221 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
[llvm-branch-commits] [llvm] [asan] isInterestingAlloca: remove the isAllocaPromotable condition (PR #77221)
@@ -1279,9 +1278,6 @@ bool AddressSanitizer::isInterestingAlloca(const AllocaInst ) { (AI.getAllocatedType()->isSized() && vitalybuka wrote: isInterestingAlloca contains other checks. There is no point to have a flag to enable instrumentation of allocas which we can't instrument. https://github.com/llvm/llvm-project/pull/77221 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
[llvm-branch-commits] [llvm] [asan] isInterestingAlloca: remove the isAllocaPromotable condition (PR #77221)
https://github.com/MaskRay updated https://github.com/llvm/llvm-project/pull/77221 >From 46d21cd0327e352491be77bb86740167984c0209 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Wed, 14 Feb 2024 23:26:34 -0800 Subject: [PATCH] fix cl::desc Created using spr 1.3.4 --- llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp b/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp index 2e8d9bd748df82..029c07636d1784 100644 --- a/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp +++ b/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp @@ -347,7 +347,7 @@ static cl::opt static cl::opt ClInstrumentUninterestingAllocas( "asan-instrument-uninteresting-allocas", -cl::desc("Do not instrument uninteresting allocas"), cl::Hidden); +cl::desc("Instrument uninteresting allocas"), cl::Hidden); static cl::opt ClConstructorKind( "asan-constructor-kind", ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits