[optimize]添加更为通用的除法强度削减Pass, 不受除数限制替换div指令,不影响当前分数
This commit is contained in:
9
test_div_optimization.sy
Normal file
9
test_div_optimization.sy
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user