[llvm] [AMDGPU][Attributor] Check the validity of a dependent AA before using its value (PR #114165)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 29 19:23:12 PDT 2024


================
@@ -449,7 +449,8 @@ struct AAAMDAttributesFunction : public AAAMDAttributes {
     // Check for Intrinsics and propagate attributes.
     const AACallEdges *AAEdges = A.getAAFor<AACallEdges>(
         *this, this->getIRPosition(), DepClassTy::REQUIRED);
-    if (!AAEdges || AAEdges->hasNonAsmUnknownCallee())
+    if (!AAEdges || !AAEdges->isValidState() ||
----------------
arsenm wrote:

But for all of these function only attributes, how could that happen? 

https://github.com/llvm/llvm-project/pull/114165


More information about the llvm-commits mailing list