search for: fff3

Displaying 4 results from an estimated 4 matches for "fff3".

Did you mean: fff
2018 Apr 20
2
Missed strlen optimizations
Hello, Code: https://godbolt.org/g/EG4Wi6 unsigned fff3(void) { char buf[10] = ""; return strlen(buf); } Since we are memset-ing before strlen call, we could replace strlen with just 0. Has LLVM any API to get "last instruction before strlen" which modifies strlen argument "buf"? So we can check "yes, it is m...
2018 Apr 20
2
Missed strlen optimizations
...solution? 2018-04-20 19:19 GMT+02:00 Dávid Bolvanský <david.bolvansky at gmail.com>: > Is: > > > 2018-04-20 18:07 GMT+02:00 Dávid Bolvanský <david.bolvansky at gmail.com>: > >> Hello, >> >> Code: https://godbolt.org/g/EG4Wi6 >> >> unsigned fff3(void) { >> char buf[10] = ""; >> return strlen(buf); >> } >> >> Since we are memset-ing before strlen call, we could replace strlen with >> just 0. >> >> Has LLVM any API to get "last instruction before strlen" which modifi...
2018 Apr 20
0
Missed strlen optimizations
Is: 2018-04-20 18:07 GMT+02:00 Dávid Bolvanský <david.bolvansky at gmail.com>: > Hello, > > Code: https://godbolt.org/g/EG4Wi6 > > unsigned fff3(void) { > char buf[10] = ""; > return strlen(buf); > } > > Since we are memset-ing before strlen call, we could replace strlen with > just 0. > > Has LLVM any API to get "last instruction before strlen" which modifies > strlen argument "bu...
2018 Apr 20
0
Missed strlen optimizations
...Bolvanský <david.bolvansky at gmail.com>: > >> Is: >> >> >> 2018-04-20 18:07 GMT+02:00 Dávid Bolvanský <david.bolvansky at gmail.com>: >> >>> Hello, >>> >>> Code: https://godbolt.org/g/EG4Wi6 >>> >>> unsigned fff3(void) { >>> char buf[10] = ""; >>> return strlen(buf); >>> } >>> >>> Since we are memset-ing before strlen call, we could replace strlen with >>> just 0. >>> >>> Has LLVM any API to get "last instruction...