[CostModel] avoid crashing while finding scalarization overhead
authorSanjay Patel <spatel@rotateright.com>
Fri, 20 Nov 2020 15:14:44 +0000 (10:14 -0500)
committerSanjay Patel <spatel@rotateright.com>
Fri, 20 Nov 2020 15:18:29 +0000 (10:18 -0500)
commit7ae346434a5f51b81ebaeeb50bd5d97666ee288b
tree871e5f43a8b41f224bf133bb0f4417dbeda111d5
parente4f9b5d442a260dd78b3de581cec1e90567a2aac
[CostModel] avoid crashing while finding scalarization overhead

The constrained intrinsics have metadata arguments, so the
tests here were crashing as noted in D90554 (and that was
reverted even though this bug exists independently of that
change).
llvm/include/llvm/CodeGen/BasicTTIImpl.h
llvm/test/Analysis/CostModel/ARM/intrinsic-cost-kinds.ll
llvm/test/Analysis/CostModel/X86/intrinsic-cost-kinds.ll