[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)
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 4817 bytes
Desc: not available
More information about the llvm-commits