[Bug tree-optimization/90917] Propagate constants into loads if dominated by str(n)cmp/memcmp

2020-01-14 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90917 --- Comment #3 from Martin Sebor --- The solution for pr83431 doesn't handle the case in comment #2 but hopefully a future improvement (in GCC 11) will.

[Bug tree-optimization/90917] Propagate constants into loads if dominated by str(n)cmp/memcmp

2019-06-19 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90917 Martin Sebor changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug tree-optimization/90917] Propagate constants into loads if dominated by str(n)cmp/memcmp

2019-06-18 Thread david.bolvansky at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90917 --- Comment #1 from Dávid Bolvanský --- char f(void) { char* s = ... ; if (strcmp(global_s, s) == 0) return global_s[0]; return '-'; } --> char f2(void) { char* s = ... ; if (strcmp(global_s, s) == 0) return s[0]; return '-'; }