diff options
author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2025-05-09 12:23:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-09 12:23:38 +0200 |
commit | 89d13f87c736d1a341959d03f3f9e5e65b95ebf5 (patch) | |
tree | 58483fc700093665377bd081dca33d2eb210c061 /llvm/lib/Analysis/ValueTracking.cpp | |
parent | e854c381c6344b2ff8d1b58aa97008b4ecd9a9c5 (diff) | |
download | llvm-89d13f87c736d1a341959d03f3f9e5e65b95ebf5.zip llvm-89d13f87c736d1a341959d03f3f9e5e65b95ebf5.tar.gz llvm-89d13f87c736d1a341959d03f3f9e5e65b95ebf5.tar.bz2 |
Analysis: Remove no-AssumptionCache path in getKnowledgeForValue (#139232)
As requested in https://github.com/llvm/llvm-project/pull/138961#discussion_r2078483175
Diffstat (limited to 'llvm/lib/Analysis/ValueTracking.cpp')
-rw-r--r-- | llvm/lib/Analysis/ValueTracking.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/ValueTracking.cpp b/llvm/lib/Analysis/ValueTracking.cpp index ba6da4d..3d40353 100644 --- a/llvm/lib/Analysis/ValueTracking.cpp +++ b/llvm/lib/Analysis/ValueTracking.cpp @@ -8010,7 +8010,7 @@ static bool isGuaranteedNotToBeUndefOrPoison( Dominator = Dominator->getIDom(); } - if (getKnowledgeValidInContext(V, {Attribute::NoUndef}, CtxI, DT, AC)) + if (AC && getKnowledgeValidInContext(V, {Attribute::NoUndef}, *AC, CtxI, DT)) return true; return false; |