Fix DexToDexCompiler setup condition.

We were wasting unnecessary time for DexToDexCompiler setup
despite dex-to-dex compile being deprecated and disabled.

Test: m
Bug: 170086509
Bug: 181943478
Change-Id: I420b26fbc0b870c8c9a879c5f24b1583afecce76
diff --git a/dex2oat/driver/compiler_driver.cc b/dex2oat/driver/compiler_driver.cc
index e23d1b0..280ac45 100644
--- a/dex2oat/driver/compiler_driver.cc
+++ b/dex2oat/driver/compiler_driver.cc
@@ -846,7 +846,7 @@
 void CompilerDriver::PrepareDexFilesForOatFile(TimingLogger* timings) {
   compiled_classes_.AddDexFiles(GetCompilerOptions().GetDexFilesForOatFile());
 
-  if (GetCompilerOptions().IsAnyCompilationEnabled()) {
+  if (GetCompilerOptions().IsQuickeningCompilationEnabled()) {
     TimingLogger::ScopedTiming t2("Dex2Dex SetDexFiles", timings);
     dex_to_dex_compiler_.SetDexFiles(GetCompilerOptions().GetDexFilesForOatFile());
   }