[llvm] [AMDGPU] Quit PromoteAllocaToVector if intrinsic is used (PR #68744)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 7 23:13:49 PST 2023


================
@@ -772,6 +772,8 @@ bool AMDGPUPromoteAllocaImpl::tryPromoteAllocaToVector(AllocaInst &Alloca) {
 
     // Ignore assume-like intrinsics and comparisons used in assumes.
     if (isAssumeLikeIntrinsic(Inst)) {
+      if (!Inst->use_empty())
+        return RejectUser(Inst, "assume-like intrinsic cannot have any users");
----------------
arsenm wrote:

ping? I think it won't be much effort to support this case 

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


More information about the llvm-commits mailing list