[InlineCost] Fix scalable vectors in visitAlloca
authorCullen Rhodes <cullen.rhodes@arm.com>
Wed, 12 Aug 2020 18:03:46 +0000 (18:03 +0000)
committerCullen Rhodes <cullen.rhodes@arm.com>
Mon, 17 Aug 2020 10:34:27 +0000 (10:34 +0000)
commit2ccde3c96b784f74370beff5dab5fbf3e70fae8b
tree28dd18a2fb92d93c29132bbc657f829e1ce6e417
parent3b348d91028726f840868875dac3bcefcefda917
[InlineCost] Fix scalable vectors in visitAlloca

Discovered as part of the VLS type work (see D85128).

Reviewed By: efriedma

Differential Revision: https://reviews.llvm.org/D85848
llvm/lib/Analysis/InlineCost.cpp
llvm/test/Transforms/Inline/inline-scalable.ll [new file with mode: 0644]