[Bug tree-optimization/79547] duplicate strlen calls with same argument not folded
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Feb 16 08:38:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79547
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Yeah, if alias analysis would be able to determine that __builtin_strlen
doesn't really escape the address anywhere (similarly strcmp and others), then
it would magically just work, the strlen pass just asks alias oracle whether
each stmt can modify the bytes pointed by s.
More information about the Gcc-bugs
mailing list