[PATCH] D106561: [AArch64] Optimise min/max lowering in ISel
Dave Green via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 22 08:59:27 PDT 2021
dmgreen added inline comments.
================
Comment at: llvm/test/CodeGen/AArch64/vecreduce-umax-legalization.ll:90
; CHECK: // %bb.0:
-; CHECK-NEXT: mov x8, v0.d[1]
-; CHECK-NEXT: fmov x9, d0
-; CHECK-NEXT: cmp x9, x8
-; CHECK-NEXT: csel x0, x9, x8, hi
-; CHECK-NEXT: ret
+; CHECK-NEXT: ext v1.16b, v0.16b, v0.16b, #8
+; CHECK-NEXT: cmhi d2, d0, d1
----------------
david-arm wrote:
> Hi @Rin, at first glance this code looks like it might be worse than before? I realise the instruction count is the same, but I wonder if the cost of 'ext' might be higher?
Why would the cost of an ext be higher?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D106561/new/
https://reviews.llvm.org/D106561
More information about the llvm-commits
mailing list