[all-commits] [llvm/llvm-project] 33da60: [AMDGPU][InferAddressSpaces] Only rewrite address-...
Juan Manuel Martinez Caamaño via All-commits
all-commits at lists.llvm.org
Tue May 16 08:33:52 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 33da608ecc0fddbb38b01415d32464db1d867df1
https://github.com/llvm/llvm-project/commit/33da608ecc0fddbb38b01415d32464db1d867df1
Author: Juan Manuel MARTINEZ CAAMAÑO <juamarti at amd.com>
Date: 2023-05-16 (Tue, 16 May 2023)
Changed paths:
M llvm/lib/Target/AMDGPU/AMDGPUTargetTransformInfo.cpp
A llvm/test/Transforms/InferAddressSpaces/AMDGPU/flat-fadd-fmin-fmax-intrinsics.ll
Log Message:
-----------
[AMDGPU][InferAddressSpaces] Only rewrite address-spaces that can be trivially casted to flat for llvm.amdgcn.flat.atomic.{fadd,fmax,fmin}
The intrinsic @llvm.amdgcn.flat.atomic.{fadd,fmax,fmin} can only be
selected for flat address spaces (constant, flat and global).
This patch restricts the cases over which GCNTTIImpl::rewriteIntrinsicWithAddressSpace
rewrites the intrinsic.
Reviewed By: arsenm
Differential Revision: https://reviews.llvm.org/D149938
More information about the All-commits
mailing list