[clang] [llvm] [AMDGPU][WIP] Extend readlane, writelane and readfirstlane intrinsic lowering for generic types (PR #89217)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Mon May 13 07:36:48 PDT 2024
================
@@ -3400,7 +3400,7 @@ def : GCNPat<
// FIXME: Should also do this for readlane, but tablegen crashes on
// the ignored src1.
def : GCNPat<
- (int_amdgcn_readfirstlane (i32 imm:$src)),
+ (i32 (AMDGPUreadfirstlane (i32 imm:$src))),
----------------
arsenm wrote:
We might need to make this fold more sophisticated for other types, but best for a follow up patch
https://github.com/llvm/llvm-project/pull/89217
More information about the llvm-commits
mailing list