[llvm] 44c1425 - [Attributor][fix] Remove problematic EXPENSIVE_CHECK
via llvm-commits
llvm-commits at lists.llvm.org
Sat Mar 13 07:13:24 PST 2021
Author: kuterd
Date: 2021-03-13T18:03:24+03:00
New Revision: 44c1425c17c1de2bdf9094e9258071f5d6c75561
URL: https://github.com/llvm/llvm-project/commit/44c1425c17c1de2bdf9094e9258071f5d6c75561
DIFF: https://github.com/llvm/llvm-project/commit/44c1425c17c1de2bdf9094e9258071f5d6c75561.diff
LOG: [Attributor][fix] Remove problematic EXPENSIVE_CHECK
Remove the check that is causing compilation issues in
some build configurations.
Added:
Modified:
llvm/include/llvm/Transforms/IPO/Attributor.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/Transforms/IPO/Attributor.h b/llvm/include/llvm/Transforms/IPO/Attributor.h
index cbf33bccefe3..698a1949af47 100644
--- a/llvm/include/llvm/Transforms/IPO/Attributor.h
+++ b/llvm/include/llvm/Transforms/IPO/Attributor.h
@@ -1125,17 +1125,6 @@ struct Attributor {
const AAType &
getOrCreateAAFor(IRPosition IRP, const AbstractAttribute *QueryingAA,
DepClassTy DepClass, bool ForceUpdate = false) {
-#ifdef EXPENSIVE_CHECKS
- // Don't allow callbase information to leak.
- if (auto *CBContext = IRP.getCallBaseContext()) {
- assert(
- ((CBContext->getCalledFunction() == IRP.getAnchorScope() ||
- !QueryingAA ||
- !QueryingAA->getIRPosition().isAnyCallSitePosition())) &&
- "non callsite positions are not allowed to propagate CallBaseContext "
- "across functions");
- }
-#endif
if (!shouldPropagateCallBaseContext(IRP))
IRP = IRP.stripCallBaseContext();
More information about the llvm-commits
mailing list