https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87900
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Depends on| |83022 See Also|https://gcc.gnu.org/bugzill |https://github.com/llvm/llv |a/show_bug.cgi?id=83022 |m-project/issues/46503 --- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Oh for small power of 2 sizes, clang has a bug report about that: https://github.com/llvm/llvm-project/issues/46503 So maybe we should handle ` = 0 ` case too ... It is not hard to add. But first I want to fix PR 83022 before this one. Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83022 [Bug 83022] [12/13/14/15 Regression] malloc & memset -> calloc is not always an optimization