[llvm-branch-commits] [llvm] [polly] Reapply "IR: Remove uselist for constantdata (#137313)" (PR #138961)

Nikita Popov via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed May 7 13:58:11 PDT 2025


================
@@ -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


More information about the llvm-branch-commits mailing list