[ARM64] Fix immediate cost calculation for types larger than i64.
authorJuergen Ributzka <juergen@apple.com>
Thu, 10 Apr 2014 01:36:59 +0000 (01:36 +0000)
committerJuergen Ributzka <juergen@apple.com>
Thu, 10 Apr 2014 01:36:59 +0000 (01:36 +0000)
commitd631cc45635a59c4169f30d19bd97d5f8b8480b6
tree06507c1e697cbaa7d94bde503b41b47d2072621f
parent6a6b4d5dfab7ec2706dadf48a82b67c3a2079c3a
[ARM64] Fix immediate cost calculation for types larger than i64.

The immediate cost calculation code was hitting an assertion in the included
test case, because APInt was still internally 128-bits. Truncating it to 64-bits
fixed the issue.

Fixes <rdar://problem/16572521>.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205947 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM64/ARM64TargetTransformInfo.cpp
test/Transforms/ConstantHoisting/ARM64/large-immediate.ll [new file with mode: 0644]