search for: eliminatenoopstore

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

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 sto...
2018 May 22
2
DSE: Remove useless stores between malloc & memset
...n false; > errs() << "before\n"; > if (memoryIsNotModifiedBetween(UnderlyingPointer, CI, AA)) { <--- CRASH > errs() << "after\n"; > } > return false; > } > > Do you know what is wrong here? I followed the "example" (in eliminateNoopStore) how to use "memoryIsNotModifiedBetween". > > > Thank you for advice > > > > 2018-05-21 21:06 GMT+02:00 Friedman, Eli <efriedma at codeaurora.org>: > >> memoryIsNotModifiedBetween is precisely the sort of expensive walk we >> shouldn't be doin...
2018 May 22
0
DSE: Remove useless stores between malloc & memset
...isStringFromCalloc(Dst, TLI)) return false; errs() << "before\n"; if (memoryIsNotModifiedBetween(UnderlyingPointer, CI, AA)) { <--- CRASH errs() << "after\n"; } return false; } Do you know what is wrong here? I followed the "example" (in eliminateNoopStore) how to use "memoryIsNotModifiedBetween". Thank you for advice 2018-05-21 21:06 GMT+02:00 Friedman, Eli <efriedma at codeaurora.org>: > memoryIsNotModifiedBetween is precisely the sort of expensive walk we > shouldn't be doing... I'm surprised it hasn't cause...
2018 May 21
2
DSE: Remove useless stores between malloc & memset
...<mailto:efriedma at codeaurora.org>>: >> >> On 5/17/2018 8:58 AM, Dávid Bolvanský via llvm-dev wrote: >> >> 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); >> >> &gt...
2018 May 22
2
DSE: Remove useless stores between malloc & memset
...lt; "before\n"; >> if (memoryIsNotModifiedBetween(UnderlyingPointer, CI, AA)) { <--- CRASH >> errs() << "after\n"; >> } >> return false; >> } >> >> Do you know what is wrong here? I followed the "example" (in eliminateNoopStore) how to use "memoryIsNotModifiedBetween". >> >> Thank you for advice >> >> >> 2018-05-21 21:06 GMT+02:00 Friedman, Eli <efriedma at codeaurora.org>: >> >>> memoryIsNotModifiedBetween is precisely the sort of expensive walk we >>>...
2018 May 22
0
DSE: Remove useless stores between malloc & memset
...lt; "before\n"; > if (memoryIsNotModifiedBetween(UnderlyingPointer, CI, AA)) { <--- CRASH > errs() << "after\n"; > } > return false; > } > > Do you know what is wrong here? I followed the "example" (in eliminateNoopStore) how to use "memoryIsNotModifiedBetween". > > Thank you for advice > > > 2018-05-21 21:06 GMT+02:00 Friedman, Eli <efriedma at codeaurora.org > <mailto:efriedma at codeaurora.org>>: > > memoryIsNotModifiedBetween is precisely the sor...
2018 May 22
0
DSE: Remove useless stores between malloc & memset
...t;>> if (memoryIsNotModifiedBetween(UnderlyingPointer, CI, AA)) { <--- CRASH >>> errs() << "after\n"; >>> } >>> return false; >>> } >>> >>> Do you know what is wrong here? I followed the "example" (in eliminateNoopStore) how to use "memoryIsNotModifiedBetween". >>> >>> Thank you for advice >>> >>> >>> 2018-05-21 21:06 GMT+02:00 Friedman, Eli <efriedma at codeaurora.org>: >>> >>>> memoryIsNotModifiedBetween is precisely the sort of ex...
2018 May 22
2
DSE: Remove useless stores between malloc & memset
...sNotModifiedBetween(UnderlyingPointer, CI, AA)) { <--- CRASH >>>> errs() << "after\n"; >>>> } >>>> return false; >>>> } >>>> >>>> Do you know what is wrong here? I followed the "example" (in eliminateNoopStore) how to use "memoryIsNotModifiedBetween". >>>> >>>> Thank you for advice >>>> >>>> >>>> 2018-05-21 21:06 GMT+02:00 Friedman, Eli <efriedma at codeaurora.org>: >>>> >>>>> memoryIsNotModifiedBetween...
2018 May 22
2
DSE: Remove useless stores between malloc & memset
...-- CRASH >> errs() << "after\n"; >> } >> return false; >> } >> >> Do you know what is wrong here? I followed the "example" (in eliminateNoopStore) how to use "memoryIsNotModifiedBetween". >> >> Thank you for advice >> >> >> 2018-05-21 21:06 GMT+02:00 Friedman, Eli >> <efriedma at codeaurora.org >> <mailto:...
2018 May 22
0
DSE: Remove useless stores between malloc & memset
...rlyingPointer, CI, AA)) { <--- CRASH >>>>> errs() << "after\n"; >>>>> } >>>>> return false; >>>>> } >>>>> >>>>> Do you know what is wrong here? I followed the "example" (in eliminateNoopStore) how to use "memoryIsNotModifiedBetween". >>>>> >>>>> Thank you for advice >>>>> >>>>> >>>>> 2018-05-21 21:06 GMT+02:00 Friedman, Eli <efriedma at codeaurora.org>: >>>>> >>>>>&gt...
2018 May 22
0
DSE: Remove useless stores between malloc & memset
...{ <--- CRASH >>>>>> errs() << "after\n"; >>>>>> } >>>>>> return false; >>>>>> } >>>>>> >>>>>> Do you know what is wrong here? I followed the "example" (in eliminateNoopStore) how to use "memoryIsNotModifiedBetween". >>>>>> >>>>>> Thank you for advice >>>>>> >>>>>> >>>>>> 2018-05-21 21:06 GMT+02:00 Friedman, Eli <efriedma at codeaurora.org>: >>>>>>...
2018 May 21
0
DSE: Remove useless stores between malloc & memset
...> 2018-05-17 21:00 GMT+02:00 Friedman, Eli <efriedma at codeaurora.org>: > >> On 5/17/2018 8:58 AM, Dávid Bolvanský via llvm-dev wrote: >> >>> 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); >>> >> >> This is classic dead store elimination,...