[PATCH] D24747: [AArch64] Improve isel of negate of zext.
Geoff Berry via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 19 14:49:38 PDT 2016
gberry created this revision.
gberry added reviewers: t.p.northover, jmolloy.
gberry added subscribers: llvm-commits, mcrosier.
Herald added subscribers: rengolin, aemerson.
Given the below IR:
%m = and i32 %x, 3
%ext = zext i32 %m to i64
%ret = sub i64 0, %ext
generate:
and w8, w0, #3
sub x0, xzr, x8
instead of:
mov x8, xzr
and w9, w0, #3
sub x0, x8, w9, uxtw
https://reviews.llvm.org/D24747
Files:
lib/Target/AArch64/AArch64InstrInfo.td
test/CodeGen/AArch64/addsub_ext.ll
test/CodeGen/AArch64/neg-zext.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D24747.71883.patch
Type: text/x-patch
Size: 4163 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160919/7d66793b/attachment.bin>
More information about the llvm-commits
mailing list