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". What is the be...
2018 May 21
2
DSE: Remove useless stores between malloc & memset
...li On 5/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, I have > a &...
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
...vanský 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...
2018 May 22
0
DSE: Remove useless stores between malloc & memset
...On 5/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, I have a > &q...
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 >>> >>>...
2018 May 22
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 >> >>...
2018 May 22
0
DSE: Remove useless stores between malloc & memset
...esses 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...
2018 May 22
2
DSE: Remove useless stores between malloc & memset
...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 >>>>&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
...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); // l...
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: >>>>>>> >>>>>>...