OSDN Git Service

AArch64: Better codegen for storing to __fp16.
authorJim Grosbach <grosbach@apple.com>
Wed, 9 Jul 2014 18:55:52 +0000 (18:55 +0000)
committerJim Grosbach <grosbach@apple.com>
Wed, 9 Jul 2014 18:55:52 +0000 (18:55 +0000)
commita3edd6a0386363b60ec41ae1407c0149cdd7b259
treed74c6699b3d2059c30b7f40dca8c8ef71bd1f99f
parentf634247b1d953ec3d6eac29a520696242344976a
AArch64: Better codegen for storing to __fp16.

Storing will generally be immediately preceded by rounding from an f32
or f64, so make sure to match those patterns directly to convert into the
FPR16 register class directly rather than going through the integer GPRs.

This also eliminates an extra step in the convert-from-f64 path
which was first converting to f32 and then to f16 from there.

rdar://17594379

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212638 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AArch64/AArch64InstrInfo.td
test/CodeGen/AArch64/f16-convert.ll