[llvm] [AMDGPU] Quit PromoteAllocaToVector if intrinsic is used (PR #68744)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 23 23:18:46 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-like intrinsic cannot have any users");
----------------
arsenm wrote:
objectsize doesn't need to be rejected, the object size doesn't change after promotion
https://github.com/llvm/llvm-project/pull/68744
More information about the llvm-commits
mailing list