summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Object/RecordStreamer.cpp
diff options
context:
space:
mode:
authorBalaram Makam <bmakam@codeaurora.org>2016-03-10 17:54:55 +0000
committerBalaram Makam <bmakam@codeaurora.org>2016-03-10 17:54:55 +0000
commite9b2725287159182ba6bafec3e94c49f76b24fb0 (patch)
treec76559c1f02dc6ab8bfe740aaac6288655b63f4a /llvm/lib/Object/RecordStreamer.cpp
parenta333dcfc4222e2b4ddc8fcb01cf1d79b18f1b139 (diff)
downloadbcm5719-llvm-e9b2725287159182ba6bafec3e94c49f76b24fb0.tar.gz
bcm5719-llvm-e9b2725287159182ba6bafec3e94c49f76b24fb0.zip
[AArch64] Optimize compare and branch sequence when the compare's constant operand is power of 2
Summary: Peephole optimization that generates a single TBZ/TBNZ instruction for test and branch sequences like in the example below. This handles the cases that miss folding of AND into TBZ/TBNZ during ISelLowering of BR_CC Examples: and w8, w8, #0x400 cbnz w8, L1 to tbnz w8, #10, L1 Reviewers: MatzeB, jmolloy, mcrosier, t.p.northover Subscribers: aemerson, rengolin, mcrosier, llvm-commits Differential Revision: http://reviews.llvm.org/D17942 llvm-svn: 263136
Diffstat (limited to 'llvm/lib/Object/RecordStreamer.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud