From ef4a6564254012b7ba00d6310521b1c0d938bdac Mon Sep 17 00:00:00 2001 From: Logan Chien Date: Tue, 24 Apr 2012 18:02:24 +0800 Subject: Remove unnecessary zero-initializer. Dex verifier will guarantee that a Dalvik register will be initialized before any usage. So we don't have to generate the code to initialize them to 0 after allocation. NOTE: We wrote the zero-initializer for historical reason. There was a bug in the implementation of SHL, SHR, USHR, and result in undef value after optimization. Since we have found the bug, and we don't get undef any more, it's time to remove these zero-initializer to save code size and run time. Change-Id: I0375af3bed08495f6743699c7a72c295cad71dfa --- src/compiler_llvm/method_compiler.h | 1 - 1 file changed, 1 deletion(-) (limited to 'src/compiler_llvm/method_compiler.h') diff --git a/src/compiler_llvm/method_compiler.h b/src/compiler_llvm/method_compiler.h index 7dded33412..d5a4374ca2 100644 --- a/src/compiler_llvm/method_compiler.h +++ b/src/compiler_llvm/method_compiler.h @@ -456,7 +456,6 @@ class MethodCompiler { llvm::BasicBlock* basic_block_stack_overflow_; llvm::BasicBlock* basic_block_reg_alloca_; llvm::BasicBlock* basic_block_shadow_frame_alloca_; - llvm::BasicBlock* basic_block_reg_zero_init_; llvm::BasicBlock* basic_block_reg_arg_init_; std::vector basic_blocks_; -- cgit v1.2.3-59-g8ed1b