[all-commits] [llvm/llvm-project] 848dca: AMDGPU: Stop promoting allocas with addrspacecast ...
Matt Arsenault via All-commits
all-commits at lists.llvm.org
Wed Aug 14 09:24:35 PDT 2024
Branch: refs/heads/users/arsenm/amdgpu-stop-promote-alloca-addrspacecast
Home: https://github.com/llvm/llvm-project
Commit: 848dcae43dfa060d8b5d66ab54987c24c5904384
https://github.com/llvm/llvm-project/commit/848dcae43dfa060d8b5d66ab54987c24c5904384
Author: Matt Arsenault <Matthew.Arsenault at amd.com>
Date: 2024-08-14 (Wed, 14 Aug 2024)
Changed paths:
M llvm/lib/Target/AMDGPU/AMDGPUPromoteAlloca.cpp
M llvm/test/CodeGen/AMDGPU/promote-alloca-addrspacecast.ll
Log Message:
-----------
AMDGPU: Stop promoting allocas with addrspacecast users
We cannot promote this case unless we know the value is only
observed through flat operations. We cannot analyze this through
a call. PointerMayBeCaptured was an imprecise check for this.
A callee with a nocapture attribute may still cast to private and
observe the address space, so really we need a different notion
of nocapture.
I doubt this was of any use anyway. The promotable cases should
have optimized out addrspacecast to begin earlier.
Fixes #104035
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list