[PATCH] D93360: [LibCallSimplifier] fold memset(malloc(x), 0, x) to calloc(1, x) if memset is intrinsic
Dávid Bolvanský via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 13 06:51:29 PDT 2021
xbolva00 added a subscriber: yurai007.
xbolva00 added a comment.
Fixed by @yurai007
================
Comment at: llvm/test/Transforms/InstCombine/memset-1.ll:60
; FIXME: memset(malloc(x), 0, x) -> calloc(1, x)
; This doesn't fire currently because the malloc has more than one use.
----------------
Remove fixme
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D93360/new/
https://reviews.llvm.org/D93360
More information about the llvm-commits
mailing list