[ARM] Ensure types provided to getIntrinsicCost are valid
authorDavid Green <david.green@arm.com>
Thu, 18 Feb 2021 14:00:23 +0000 (14:00 +0000)
committerDavid Green <david.green@arm.com>
Thu, 18 Feb 2021 14:00:23 +0000 (14:00 +0000)
commit33ba220611730db9a5cd27ae60a4f0ee278da745
treee1bd02eac79dda5eb87bdc5ea8239f6dfefb457b
parent624fccba87cc7cc5af523f7efb10a0d82118ecd5
[ARM] Ensure types provided to getIntrinsicCost are valid

It appears that pointer types were causing issues for the min/max cost
code in getIntrinsicInstrCost. This makes sure that when matching
icmp/select to a min/max, we only do that for normal int or float types.
llvm/lib/Target/ARM/ARMTargetTransformInfo.cpp
llvm/test/Analysis/CostModel/ARM/cmps.ll