[PATCH] [AArch64] Improve codegen of store lane 0 instructions by directly storing the subregister.

Ahmed Bougacha ahmed.bougacha at gmail.com
Tue Dec 23 11:31:09 PST 2014


Hi jmolloy,

Split out of D6202.

For 0-lane stores, we used to generate stuff like:

```
	fmov w8, s0
	str w8, [x0, x1, lsl #2]
```
instead of:

```
	str s0, [x0, x1, lsl #2]

```
To correct that: for store lane 0 patterns, directly match to STR <subreg>0

Byte-sized instructions don't have the special case for a 0 index, because FPR8s are defined to have untyped content.

http://reviews.llvm.org/D6772

Files:
  lib/Target/AArch64/AArch64InstrInfo.td
  test/CodeGen/AArch64/arm64-st1.ll

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D6772.17602.patch
Type: text/x-patch
Size: 6770 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141223/337f4a35/attachment.bin>


More information about the llvm-commits mailing list