https://github.com/arsenm created https://github.com/llvm/llvm-project/pull/119796
Pick the minimum complexity required for tests to pass instead of a giant debug value of 1000. >From afdc198444b70ea53322321d1e192db0cdee8110 Mon Sep 17 00:00:00 2001 From: Matt Arsenault <matthew.arsena...@amd.com> Date: Fri, 13 Dec 2024 08:49:31 +0900 Subject: [PATCH] AMDGPU: Reduce AddedComplexity on canonicalize pattern Pick the minimum complexity required for tests to pass instead of a giant debug value of 1000. --- llvm/lib/Target/AMDGPU/SIInstructions.td | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Target/AMDGPU/SIInstructions.td b/llvm/lib/Target/AMDGPU/SIInstructions.td index bc25d75131cc35..9bd04b939c8a55 100644 --- a/llvm/lib/Target/AMDGPU/SIInstructions.td +++ b/llvm/lib/Target/AMDGPU/SIInstructions.td @@ -3055,7 +3055,7 @@ def : GCNPat< (V_BFREV_B32_e64 (i32 (EXTRACT_SUBREG VReg_64:$a, sub0))), sub1)>; // If fcanonicalize's operand is implicitly canonicalized, we only need a copy. -let AddedComplexity = 1000 in { +let AddedComplexity = 8 in { foreach vt = [f16, v2f16, f32, v2f32, f64] in { def : GCNPat< (fcanonicalize (vt is_canonicalized:$src)), _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits