summaryrefslogtreecommitdiff
path: root/src/compiler_llvm/method_compiler.cc
diff options
context:
space:
mode:
author TDYa127 <tdy@google.com> 2012-05-11 21:01:36 -0700
committer Shih-wei Liao <sliao@google.com> 2012-05-14 14:41:15 -0700
commitf15b0ab64754345429b4ffaec7f8a4e3194d1a74 (patch)
tree8181357b4059446d9c32741f145efbe53730d8ee /src/compiler_llvm/method_compiler.cc
parent45ef96aabafc259edcba2f624b10926487c98273 (diff)
Only do the suspend check at return and loop latch.
Change-Id: I0c7d2b25288bfb85dfc8a0650b75aff2162f9903
Diffstat (limited to 'src/compiler_llvm/method_compiler.cc')
-rw-r--r--src/compiler_llvm/method_compiler.cc15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/compiler_llvm/method_compiler.cc b/src/compiler_llvm/method_compiler.cc
index 1cc6a30a3d..c5606c794f 100644
--- a/src/compiler_llvm/method_compiler.cc
+++ b/src/compiler_llvm/method_compiler.cc
@@ -1928,11 +1928,6 @@ void MethodCompiler::EmitInsn_UnconditionalBranch(uint32_t dex_pc,
int32_t branch_offset = dec_insn.vA;
- if (branch_offset <= 0) {
- // Garbage collection safe-point on backward branch
- EmitGuard_GarbageCollectionSuspend(dex_pc);
- }
-
irb_.CreateBr(GetBasicBlock(dex_pc + branch_offset));
}
@@ -2063,11 +2058,6 @@ void MethodCompiler::EmitInsn_BinaryConditionalBranch(uint32_t dex_pc,
int32_t branch_offset = dec_insn.vC;
- if (branch_offset <= 0) {
- // Garbage collection safe-point on backward branch
- EmitGuard_GarbageCollectionSuspend(dex_pc);
- }
-
llvm::Value* src1_value;
llvm::Value* src2_value;
@@ -2129,11 +2119,6 @@ void MethodCompiler::EmitInsn_UnaryConditionalBranch(uint32_t dex_pc,
int32_t branch_offset = dec_insn.vB;
- if (branch_offset <= 0) {
- // Garbage collection safe-point on backward branch
- EmitGuard_GarbageCollectionSuspend(dex_pc);
- }
-
llvm::Value* src1_value;
llvm::Value* src2_value;