[BasicAA] Remove unneeded special case for malloc/calloc
authorPhilip Reames <listmail@philipreames.com>
Wed, 18 May 2022 03:34:19 +0000 (20:34 -0700)
committerPhilip Reames <preames@rivosinc.com>
Wed, 18 May 2022 03:45:14 +0000 (20:45 -0700)
commit9b1e00738c5ddba681e17e5cb7c260d9afc4c3a7
tree2f2affd100c974182e1d22ea001d8b559c938deb
parentdca37af061fbe6590399dfb4e3fd3dda16d63144
[BasicAA] Remove unneeded special case for malloc/calloc

This code pre-exists the generic handling for inaccessiblememonly.  If we remove it and update one test with inaccessiblememonly, nothing else changes.  Note that simply running O1 on that test would annotate malloc with the missing inaccessiblememonly.
llvm/lib/Analysis/BasicAliasAnalysis.cpp
llvm/test/Transforms/GVN/nonescaping-malloc.ll