[PATCH] D73933: [AArch64][GlobalISel] Fold G_ASHR into TB(N)Z bit calculation
Jessica Paquette via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 3 15:16:46 PST 2020
paquette created this revision.
paquette added a reviewer: aemerson.
Herald added subscribers: Petar.Avramovic, hiraditya, kristof.beyls, rovka.
Herald added a project: LLVM.
This implements walking over G_ASHR in the same way as `getTestBitOperand` in AArch64ISelLowering.
(tbz (ashr x, c), b) -> (tbz x, b+c) or (tbz x, msb) if b+c is > # bits in x
https://reviews.llvm.org/D73933
Files:
llvm/lib/Target/AArch64/AArch64InstructionSelector.cpp
llvm/test/CodeGen/AArch64/GlobalISel/opt-fold-shift-tbz-tbnz.mir
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D73933.242210.patch
Type: text/x-patch
Size: 4444 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200203/9a5097b1/attachment.bin>
More information about the llvm-commits
mailing list