diff options
| author | 2012-04-24 18:02:24 +0800 | |
|---|---|---|
| committer | 2012-05-01 22:15:07 -0700 | |
| commit | ef4a6564254012b7ba00d6310521b1c0d938bdac (patch) | |
| tree | f8baca905b3ea99e3b116d99833ea520448552e8 /src/compiler_llvm/method_compiler.h | |
| parent | 6ee997605c9f5a029250e50330ac764d1eb8112a (diff) | |
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
Diffstat (limited to 'src/compiler_llvm/method_compiler.h')
| -rw-r--r-- | src/compiler_llvm/method_compiler.h | 1 |
1 files changed, 0 insertions, 1 deletions
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<llvm::BasicBlock*> basic_blocks_; |