diff options
author | 2017-12-01 18:00:49 +0000 | |
---|---|---|
committer | 2017-12-01 18:00:49 +0000 | |
commit | 45d3efbc433e321d0fdb3de54b01cf056c3d85ba (patch) | |
tree | a41e4de262f07eaba0611d23de36407d13ed9686 /compiler/optimizing/instruction_simplifier.cc | |
parent | d40e416f329fa7d7a3ad9cf1bcfbc5eb8137cbc4 (diff) | |
parent | 75bb2f3c85330b2aeba9e0a4a25f7eb059bcd754 (diff) |
Merge "Type conversion elimination of constants"
Diffstat (limited to 'compiler/optimizing/instruction_simplifier.cc')
-rw-r--r-- | compiler/optimizing/instruction_simplifier.cc | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/compiler/optimizing/instruction_simplifier.cc b/compiler/optimizing/instruction_simplifier.cc index bd20d28992..7fa0c2be3d 100644 --- a/compiler/optimizing/instruction_simplifier.cc +++ b/compiler/optimizing/instruction_simplifier.cc @@ -1168,16 +1168,6 @@ void InstructionSimplifierVisitor::VisitTypeConversion(HTypeConversion* instruct RecordSimplification(); return; } - } else if (input->IsIntConstant()) { - // Try to eliminate type conversion on int constant whose value falls into - // the range of the result type. - int32_t value = input->AsIntConstant()->GetValue(); - if (DataType::IsTypeConversionImplicit(value, result_type)) { - instruction->ReplaceWith(input); - instruction->GetBlock()->RemoveInstruction(instruction); - RecordSimplification(); - return; - } } } |