[PATCH] D15702: [AArch64] Optimize some simple TBZ/TBNZ cases.

Geoff Berry via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 21 13:57:40 PST 2015


gberry created this revision.
gberry added reviewers: jmolloy, mcrosier, t.p.northover.
gberry added a subscriber: llvm-commits.
Herald added subscribers: rengolin, aemerson.

Add some AArch64 dag combines to optimize some simple TBZ/TBNZ cases:

 (tbz (and x, m), b) -> (tbz x, b)
 (tbz (shl x, c), b) -> (tbz x, b-c)
 (tbz (shr x, c), b) -> (tbz x, b+c)
 (tbz (xor x, -1), b) -> (tbnz x, b)

http://reviews.llvm.org/D15702

Files:
  lib/Target/AArch64/AArch64ISelLowering.cpp
  test/CodeGen/AArch64/tbz-tbnz.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D15702.43399.patch
Type: text/x-patch
Size: 4817 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151221/0e1a7e36/attachment.bin>


More information about the llvm-commits mailing list