[PATCH] D64371: [AArch64][GlobalISel] Use TST for comparisons when possible
Jessica Paquette via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 8 15:25:22 PDT 2019
paquette created this revision.
paquette added a reviewer: aemerson.
Herald added subscribers: Petar.Avramovic, hiraditya, kristof.beyls, javed.absar, rovka.
Herald added a project: LLVM.
Porting over the part of `emitComparison` in AArch64ISelLowering where we use TST to represent a compare.
- Rename `tryOptCMN` to `tryFoldIntegerCompare`, since it now also emits TSTs when possible.
- Add a utility function for emitting a TST with register operands.
- Rename opt-fold-cmn.mir to opt-fold-compare.mir, since it now also tests the TST fold as well.
https://reviews.llvm.org/D64371
Files:
llvm/lib/Target/AArch64/AArch64InstructionSelector.cpp
llvm/test/CodeGen/AArch64/GlobalISel/opt-fold-cmn.mir
llvm/test/CodeGen/AArch64/GlobalISel/opt-fold-compare.mir
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D64371.208522.patch
Type: text/x-patch
Size: 14248 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190708/760b56a0/attachment.bin>
More information about the llvm-commits
mailing list