[PATCH] D135852: [AArch64] Enhance bit-field-positioning op matcher to see through "any_extend" for pattern "and(any_extend(shl(val, N)), shifted-mask)"
Mingming Liu via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Oct 16 09:38:21 PDT 2022
mingmingl added inline comments.
================
Comment at: llvm/test/CodeGen/AArch64/bitfield-insert.ll:597
+; CHECK-NEXT: // kill: def $w0 killed $w0 killed $x0 def $x0
+; CHECK-NEXT: ubfiz x0, x0, #7, #8
+; CHECK-NEXT: ret
----------------
dmgreen wrote:
> This is nice. I've seen this come up before. https://godbolt.org/z/hhhTKex4d
Yes, and the 2nd function in https://godbolt.org/z/hhhTKex4d are optimized to UBFIZ with this patch.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D135852/new/
https://reviews.llvm.org/D135852
More information about the llvm-commits
mailing list