[llvm] bf9964f - [Attributor][NFCI] Create a AAIsDead for the function eagerly
Joseph Huber via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 10 09:56:28 PST 2023
Author: Johannes Doerfert
Date: 2023-02-10T11:56:09-06:00
New Revision: bf9964fb138fbe8486840fa3d4439f2350225977
URL: https://github.com/llvm/llvm-project/commit/bf9964fb138fbe8486840fa3d4439f2350225977
DIFF: https://github.com/llvm/llvm-project/commit/bf9964fb138fbe8486840fa3d4439f2350225977.diff
LOG: [Attributor][NFCI] Create a AAIsDead for the function eagerly
Added:
Modified:
llvm/lib/Transforms/IPO/Attributor.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/IPO/Attributor.cpp b/llvm/lib/Transforms/IPO/Attributor.cpp
index f83acb0f1753..b11b881cd757 100644
--- a/llvm/lib/Transforms/IPO/Attributor.cpp
+++ b/llvm/lib/Transforms/IPO/Attributor.cpp
@@ -1881,7 +1881,7 @@ bool Attributor::checkForAllInstructions(function_ref<bool(Instruction &)> Pred,
// TODO: use the function scope once we have call site AAReturnedValues.
const IRPosition &QueryIRP = IRPosition::function(*Fn);
const auto *LivenessAA =
- (CheckBBLivenessOnly || CheckPotentiallyDead)
+ CheckPotentiallyDead
? nullptr
: &(getAAFor<AAIsDead>(QueryingAA, QueryIRP, DepClassTy::NONE));
More information about the llvm-commits
mailing list