diff options
Diffstat (limited to 'compiler/optimizing/code_sinking.cc')
-rw-r--r-- | compiler/optimizing/code_sinking.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/compiler/optimizing/code_sinking.cc b/compiler/optimizing/code_sinking.cc index 6c3a9fd6b5..b558eb17a7 100644 --- a/compiler/optimizing/code_sinking.cc +++ b/compiler/optimizing/code_sinking.cc @@ -64,6 +64,11 @@ static bool IsInterestingInstruction(HInstruction* instruction) { // A fence with "0" inputs is dead and should've been removed in a prior pass. DCHECK_NE(0u, ctor_fence->InputCount()); + // TODO: this should be simplified to 'return true' since it's + // potentially pessimizing any code sinking for inlined constructors with final fields. + // TODO: double check that if the final field assignments are not moved, + // then the fence is not moved either. + return ctor_fence->GetAssociatedAllocation() != nullptr; } |