search for: maloc

Displaying 12 results from an estimated 12 matches for "maloc".

Did you mean: malloc
2018 May 21
0
DSE: Remove useless stores between malloc & memset
"memory accesses between the malloc and the memset without an expensive linear scan of the block/function" (1) do you mean just use "memoryIsNotModifiedBetween" function in DSE to check it? x = maloc(..); memset(x, ...) (2) GetUnderlyingObject would give me Value * (from malloc) ? Also another case: memset(s, 0, len); // len > 1 return strlen(s); // optimize to 0 (3) How to check memset and strlen pairs? I have a strlen call, I have a "Value *" for "s"...
2018 May 21
2
DSE: Remove useless stores between malloc & memset
...;21/2018 7:48 AM, Dávid Bolvanský wrote: > "memory accesses between the malloc and the memset without an > expensive linear scan of the block/function" > > (1) do you mean just use "memoryIsNotModifiedBetween" function in DSE > to check it? > > x = maloc(..); > memset(x, ...) > > (2) GetUnderlyingObject would give me Value * (from malloc) ? > > Also another case: > > memset(s, 0, len); // len > 1 > return strlen(s); // optimize to 0 > > (3) How to check memset and strlen pairs? I have a strlen call,...
2018 May 17
3
DSE: Remove useless stores between malloc & memset
Hello, I would like to find a way to do this removal properly. I found DSE and "eliminateNoopStore" can be useful for this thing. What I mean? int *test = malloc(15 * sizeof(int)); test[10] = 12; < ----- remove this store memset(test,0,sizeof(int) * 15); I already checked the function "eliminateNoopStore". Looks good, I think I would be to get the value ("A") we
2018 May 22
2
DSE: Remove useless stores between malloc & memset
...ký wrote: >> >> "memory accesses between the malloc and the memset without an expensive >> linear scan of the block/function" >> >> (1) do you mean just use "memoryIsNotModifiedBetween" function in DSE to >> check it? >> >> x = maloc(..); >> memset(x, ...) >> >> (2) GetUnderlyingObject would give me Value * (from malloc) ? >> >> Also another case: >> >> memset(s, 0, len); // len > 1 >> return strlen(s); // optimize to 0 >> >> (3) How to check memset...
2018 May 22
0
DSE: Remove useless stores between malloc & memset
.../2018 7:48 AM, Dávid Bolvanský wrote: > > "memory accesses between the malloc and the memset without an expensive > linear scan of the block/function" > > (1) do you mean just use "memoryIsNotModifiedBetween" function in DSE to > check it? > > x = maloc(..); > memset(x, ...) > > (2) GetUnderlyingObject would give me Value * (from malloc) ? > > Also another case: > > memset(s, 0, len); // len > 1 > return strlen(s); // optimize to 0 > > (3) How to check memset and strlen pairs? I have a strlen call,...
2018 May 22
2
DSE: Remove useless stores between malloc & memset
...gt; "memory accesses between the malloc and the memset without an expensive >>> linear scan of the block/function" >>> >>> (1) do you mean just use "memoryIsNotModifiedBetween" function in DSE to >>> check it? >>> >>> x = maloc(..); >>> memset(x, ...) >>> >>> (2) GetUnderlyingObject would give me Value * (from malloc) ? >>> >>> Also another case: >>> >>> memset(s, 0, len); // len > 1 >>> return strlen(s); // optimize to 0 >>&g...
2018 May 22
0
DSE: Remove useless stores between malloc & memset
...t;memory accesses between the malloc and the memset without an >> expensive linear scan of the block/function" >> >> (1) do you mean just use "memoryIsNotModifiedBetween" >> function in DSE to check it? >> >> x = maloc(..); >> memset(x, ...) >> >> (2) GetUnderlyingObject would give me Value * (from malloc) ? >> >> Also another case: >> >> memset(s, 0, len); // len > 1 >> return strlen(s); // optimize to 0 &g...
2018 May 22
0
DSE: Remove useless stores between malloc & memset
...s between the malloc and the memset without an >>>> expensive linear scan of the block/function" >>>> >>>> (1) do you mean just use "memoryIsNotModifiedBetween" function in DSE >>>> to check it? >>>> >>>> x = maloc(..); >>>> memset(x, ...) >>>> >>>> (2) GetUnderlyingObject would give me Value * (from malloc) ? >>>> >>>> Also another case: >>>> >>>> memset(s, 0, len); // len > 1 >>>> return strlen(s); ...
2018 May 22
2
DSE: Remove useless stores between malloc & memset
...the memset without an >>>>> expensive linear scan of the block/function" >>>>> >>>>> (1) do you mean just use "memoryIsNotModifiedBetween" function in DSE >>>>> to check it? >>>>> >>>>> x = maloc(..); >>>>> memset(x, ...) >>>>> >>>>> (2) GetUnderlyingObject would give me Value * (from malloc) ? >>>>> >>>>> Also another case: >>>>> >>>>> memset(s, 0, len); // len > 1 >>&g...
2018 May 22
2
DSE: Remove useless stores between malloc & memset
...the block/function" >>> >>> (1) do you mean just use >>> "memoryIsNotModifiedBetween" function in DSE >>> to check it? >>> >>> x = maloc(..); >>> memset(x, ...) >>> >>> (2) GetUnderlyingObject would give me Value >>> * (from malloc) ? >>> >>> Also another case: >>> >>&gt...
2018 May 22
0
DSE: Remove useless stores between malloc & memset
...gt;>>>>> expensive linear scan of the block/function" >>>>>> >>>>>> (1) do you mean just use "memoryIsNotModifiedBetween" function in DSE >>>>>> to check it? >>>>>> >>>>>> x = maloc(..); >>>>>> memset(x, ...) >>>>>> >>>>>> (2) GetUnderlyingObject would give me Value * (from malloc) ? >>>>>> >>>>>> Also another case: >>>>>> >>>>>> memset(s, 0, len); /...
2018 May 22
0
DSE: Remove useless stores between malloc & memset
...gt; expensive linear scan of the block/function" >>>>>>> >>>>>>> (1) do you mean just use "memoryIsNotModifiedBetween" function in >>>>>>> DSE to check it? >>>>>>> >>>>>>> x = maloc(..); >>>>>>> memset(x, ...) >>>>>>> >>>>>>> (2) GetUnderlyingObject would give me Value * (from malloc) ? >>>>>>> >>>>>>> Also another case: >>>>>>> >>>>>>...