Skip to content

Commit 7e2ed35

Browse files
authored
AMDGPU: Reduce AddedComplexity on canonicalize pattern (#119796)
Pick the minimum complexity required for tests to pass instead of a giant debug value of 1000.
1 parent 90b04bf commit 7e2ed35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/AMDGPU/SIInstructions.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3055,7 +3055,7 @@ def : GCNPat<
30553055
(V_BFREV_B32_e64 (i32 (EXTRACT_SUBREG VReg_64:$a, sub0))), sub1)>;
30563056

30573057
// If fcanonicalize's operand is implicitly canonicalized, we only need a copy.
3058-
let AddedComplexity = 1000 in {
3058+
let AddedComplexity = 8 in {
30593059
foreach vt = [f16, v2f16, f32, v2f32, f64] in {
30603060
def : GCNPat<
30613061
(fcanonicalize (vt is_canonicalized:$src)),

0 commit comments

Comments
 (0)