================ @@ -180,6 +180,10 @@ llvm::getKnowledgeForValue(const Value *V, } return RetainedKnowledge::none(); } + + if (!V->hasUseList()) + return RetainedKnowledge::none(); ---------------- nikic wrote:
As a followup, we should completely remove the non-AC code in this function. We shouldn't be querying assumes without AC. https://github.com/llvm/llvm-project/pull/138961 _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits