search for: eg4wi6

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

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 &qu...
2018 Apr 20
2
Missed strlen optimizations
...User()->dump(); Or any better 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...
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 >...
2018 Apr 20
0
Missed strlen optimizations
...> > 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 LLV...