From a361fd3f434f2e576733286c911455bd3d0de209 Mon Sep 17 00:00:00 2001 From: Changpeng Fang Date: Thu, 18 Jul 2024 12:16:55 -0700 Subject: [PATCH] AMDGPU: Loop over the types for global_load_tr16 pats (NFC) (#99551) --- llvm/lib/Target/AMDGPU/FLATInstructions.td | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/llvm/lib/Target/AMDGPU/FLATInstructions.td b/llvm/lib/Target/AMDGPU/FLATInstructions.td index 56cc6ffa1909612..88c6039473338a3 100644 --- a/llvm/lib/Target/AMDGPU/FLATInstructions.td +++ b/llvm/lib/Target/AMDGPU/FLATInstructions.td @@ -1589,15 +1589,13 @@ let OtherPredicates = [isGFX12Plus] in { let WaveSizePredicate = isWave32 in { defm : GlobalFLATLoadPats ; - defm : GlobalFLATLoadPats ; - defm : GlobalFLATLoadPats ; - defm : GlobalFLATLoadPats ; + foreach vt = [v8i16, v8f16, v8bf16] in + defm : GlobalFLATLoadPats ; } let WaveSizePredicate = isWave64 in { defm : GlobalFLATLoadPats ; - defm : GlobalFLATLoadPats ; - defm : GlobalFLATLoadPats ; - defm : GlobalFLATLoadPats ; + foreach vt = [v4i16, v4f16, v4bf16] in + defm : GlobalFLATLoadPats ; } }