[llvm] r373988 - [Attributor][NFC] Add debug output
Johannes Doerfert via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 7 16:30:04 PDT 2019
Author: jdoerfert
Date: Mon Oct 7 16:30:04 2019
New Revision: 373988
URL: http://llvm.org/viewvc/llvm-project?rev=373988&view=rev
Log:
[Attributor][NFC] Add debug output
Modified:
llvm/trunk/lib/Transforms/IPO/Attributor.cpp
Modified: llvm/trunk/lib/Transforms/IPO/Attributor.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/IPO/Attributor.cpp?rev=373988&r1=373987&r2=373988&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/IPO/Attributor.cpp (original)
+++ llvm/trunk/lib/Transforms/IPO/Attributor.cpp Mon Oct 7 16:30:04 2019
@@ -3930,8 +3930,11 @@ bool Attributor::checkForAllCallSites(
// hence the function has internal linkage.
const IRPosition &IRP = QueryingAA.getIRPosition();
const Function *AssociatedFunction = IRP.getAssociatedFunction();
- if (!AssociatedFunction)
+ if (!AssociatedFunction) {
+ LLVM_DEBUG(dbgs() << "[Attributor] No function associated with " << IRP
+ << "\n");
return false;
+ }
if (RequireAllCallSites && !AssociatedFunction->hasLocalLinkage()) {
LLVM_DEBUG(
More information about the llvm-commits
mailing list