Summary: | missing strlen optimization for strcmp of unequal strings | ||
---|---|---|---|
Product: | gcc | Reporter: | Martin Sebor <msebor> |
Component: | tree-optimization | Assignee: | Qing Zhao <qing.zhao> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | dimhen |
Priority: | P3 | Keywords: | missed-optimization |
Version: | 8.0 | ||
Target Milestone: | --- | ||
See Also: |
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82950 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90625 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90876 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90879 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92408 |
||
Host: | Target: | ||
Build: | Known to work: | ||
Known to fail: | Last reconfirmed: | 2017-11-20 00:00:00 | |
Bug Depends on: | |||
Bug Blocks: | 83819 |
Description
Martin Sebor
2017-11-16 23:29:37 UTC
This is reasonable. I will add the support for this into my implementation for PR78809. Qing is on it. Note, this optimization is only valid when the result of the strcmp is used to compare with zero. the patch has been put back into trunk as revision 261039: https://gcc.gnu.org/viewcvs/gcc?limit_changes=0&view=revision&revision=261039 the change is in trunk, I am closing this bug. |