[optimize]添加更为通用的除法强度削减Pass, 不受除数限制替换div指令,不影响当前分数

This commit is contained in:
2025-08-03 14:37:33 +08:00
parent f312792fe9
commit 0ce742a86e
7 changed files with 175 additions and 187 deletions

9
test_div_optimization.sy Normal file
View File

@@ -0,0 +1,9 @@
int main() {
int a = 100;
int b = a / 4;
int c = a / 8;
int d = a / 16;
int e = a / 7;
int f = a / 3;
return b + c + d + e;
}