OSDN Git Service

JIT: Allow use of cbz/cbnz for conditional branch gen.
authorAnders O Nilsson <anders.o.nilsson@stericsson.com>
Fri, 8 Feb 2013 10:24:35 +0000 (11:24 +0100)
committerPatrik Ryd <patrik.ryd@stericsson.com>
Thu, 18 Apr 2013 14:15:39 +0000 (16:15 +0200)
commit0e9ec8a9e0c5552073c652b04805b31de4f358a9
treeba2aac2078f4fbe088cbf2eaffba58e18d29bd62
parent00c9c9a720b316264e6c6a71b43584b6ebc93c17
JIT: Allow use of cbz/cbnz for conditional branch gen.

Optimize conditional branch generation when comparing
with zero for ARM JIT. When possible use cbz/cbnz
instead of cmp+beq/cmp+bne.

This improves performance for usecases involving
code execution in Dalvik.

Change-Id: I8f7c44c87eb73d4da00a48fd86220a62cb0515f5
Signed-off-by: Patrik Ryd <patrik.ryd@stericsson.com>
vm/compiler/codegen/arm/CodegenDriver.cpp