summaryrefslogtreecommitdiff
path: root/compiler/optimizing/loop_optimization.cc
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/optimizing/loop_optimization.cc')
-rw-r--r--compiler/optimizing/loop_optimization.cc27
1 files changed, 0 insertions, 27 deletions
diff --git a/compiler/optimizing/loop_optimization.cc b/compiler/optimizing/loop_optimization.cc
index c6e7560aed..99141279bc 100644
--- a/compiler/optimizing/loop_optimization.cc
+++ b/compiler/optimizing/loop_optimization.cc
@@ -353,9 +353,6 @@ static bool HasReductionFormat(HInstruction* reduction, HInstruction* phi) {
static HVecReduce::ReductionKind GetReductionKind(HVecOperation* reduction) {
if (reduction->IsVecAdd() ||
reduction->IsVecSub() ||
- #if defined(ART_ENABLE_CODEGEN_x86) || defined(ART_ENABLE_CODEGEN_x86_64)
- reduction->IsVecAvxSub() || reduction->IsVecAvxAdd() ||
- #endif
reduction->IsVecSADAccumulate() ||
reduction->IsVecDotProd()) {
return HVecReduce::kSum;
@@ -1943,34 +1940,10 @@ void HLoopOptimization::GenerateVecOp(HInstruction* org,
new (global_allocator_) HVecCnv(global_allocator_, opa, type, vector_length_, dex_pc),
new (global_allocator_) HTypeConversion(org_type, opa, dex_pc));
case HInstruction::kAdd:
- #if defined(ART_ENABLE_CODEGEN_x86) || defined(ART_ENABLE_CODEGEN_x86_64)
- if ((compiler_options_->GetInstructionSet() == InstructionSet::kX86 ||
- compiler_options_->GetInstructionSet() == InstructionSet::kX86_64) &&
- compiler_options_->GetInstructionSetFeatures()->AsX86InstructionSetFeatures()
- ->HasAVX2()) {
- GENERATE_VEC(
- new (global_allocator_) HVecAvxAdd(
- global_allocator_, opa, opb, type, vector_length_, dex_pc),
- new (global_allocator_) HAdd(org_type, opa, opb, dex_pc));
- UNREACHABLE(); // GENERATE_VEC ends with a "break".
- }
- #endif
GENERATE_VEC(
new (global_allocator_) HVecAdd(global_allocator_, opa, opb, type, vector_length_, dex_pc),
new (global_allocator_) HAdd(org_type, opa, opb, dex_pc));
case HInstruction::kSub:
- #if defined(ART_ENABLE_CODEGEN_x86) || defined(ART_ENABLE_CODEGEN_x86_64)
- if ((compiler_options_->GetInstructionSet() == InstructionSet::kX86 ||
- compiler_options_->GetInstructionSet() == InstructionSet::kX86_64) &&
- compiler_options_->GetInstructionSetFeatures()->AsX86InstructionSetFeatures()
- ->HasAVX2()) {
- GENERATE_VEC(
- new (global_allocator_) HVecAvxSub(
- global_allocator_, opa, opb, type, vector_length_, dex_pc),
- new (global_allocator_) HSub(org_type, opa, opb, dex_pc));
- UNREACHABLE(); // GENERATE_VEC ends with a "break".
- }
- #endif
GENERATE_VEC(
new (global_allocator_) HVecSub(global_allocator_, opa, opb, type, vector_length_, dex_pc),
new (global_allocator_) HSub(org_type, opa, opb, dex_pc));