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

Jay Foad via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 19 04:59:42 PDT 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-line intrinsic cannot have any users");
----------------
jayfoad wrote:

Typo "like"

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


More information about the llvm-commits mailing list