search for: maxstorespermemsetoptsize

Displaying 1 result from an estimated 1 matches for "maxstorespermemsetoptsize".

2017 Sep 05
4
Lowering llvm.memset for ARM target
...struct { int v0[100]; } test; #define LIMIT 9 void init(test *t) { int i; for (i = 0; i < LIMIT ; i++) t->v0[i] = 0; } int main() { test t; init(&t); return 0; } Looking at the llvm sources, I see that there are two key target specific variables, MaxStoresPerMemset and MaxStoresPerMemsetOptSize, that determine if the intrinsic llvm.memset can be lowered into store operations. For ARM, these variables are set to 8 and 4 respectively. I do not know as to how the default values for these two variables are arrived at, but doubling these values (similar to that for the x86 target) seems to he...