Revert "[BasicAA] Remove unneeded special case for malloc/calloc"
authorPhilip Reames <listmail@philipreames.com>
Wed, 18 May 2022 14:33:39 +0000 (07:33 -0700)
committerPhilip Reames <listmail@philipreames.com>
Wed, 18 May 2022 14:35:27 +0000 (07:35 -0700)
commitf7988d08a8bf11e551e720ba72c90c42d6756ece
treefc3523e856942e2f9c93321596b5948a339ab703
parent4273e616e573f4854e9c659c2e6d8a31f3e3c595
Revert "[BasicAA] Remove unneeded special case for malloc/calloc"

This reverts commit 9b1e00738c5ddba681e17e5cb7c260d9afc4c3a7.

Nikic reported in commit thread that I had forgotten history here, and that a) we'd tried this before, and b) had to revert due to an unexpected codegen impact.  Current measurements confirm the same issue still exists.
llvm/lib/Analysis/BasicAliasAnalysis.cpp
llvm/test/Transforms/GVN/nonescaping-malloc.ll