From 8687e5f4fb2cce36c61df1097d48e5f336277a02 Mon Sep 17 00:00:00 2001 From: Alain Dargelas Date: Thu, 19 Dec 2024 14:24:25 -0800 Subject: [PATCH] compress constant ratio --- passes/pmgen/peepopt_muldiv_c.pmg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/passes/pmgen/peepopt_muldiv_c.pmg b/passes/pmgen/peepopt_muldiv_c.pmg index 67a4b4f4f..01722d29a 100644 --- a/passes/pmgen/peepopt_muldiv_c.pmg +++ b/passes/pmgen/peepopt_muldiv_c.pmg @@ -54,7 +54,7 @@ code int c_const_int = c_const.as_int(c_const_signed); int b_const_int_shifted = b_const_int << offset; // Calculate the constant and compress the width to fit the value - Const const_ratio = b_const_int_shifted / c_const_int; + Const const_ratio = b_const_int_shifted / c_const_int; const_ratio.compress(b_const_signed | c_const_signed); // Integer values should be lesser than 64 bits