[BasicAA] Delay getAllocTypeSize() call (NFC)
authorNikita Popov <npopov@redhat.com>
Mon, 12 Sep 2022 16:29:53 +0000 (18:29 +0200)
committerNikita Popov <npopov@redhat.com>
Tue, 13 Sep 2022 08:24:50 +0000 (10:24 +0200)
commit31cc0ab321441b8666406a09c2dfa3acd508959e
tree71169c11a7de735713df70d7dc1a1d76932fb7f7
parentac80b0e84f7cbcce13ddafa3207635a981cf0286
[BasicAA] Delay getAllocTypeSize() call (NFC)

This call is expensive, so don't perform it for zero indices.

Also rename the variable to use Alloc rather than Alloca, this
doesn't have anything to do with allocas in particular.
llvm/lib/Analysis/BasicAliasAnalysis.cpp