Fix the empty profile slow down the dex2oat

When pass in an empty profile to dex2oat, the dex2oat will still use the
empty prifle to do layout optimization, which is not necessary.

Bug: 204415663
Test: art_dex2oat_tests --gtest_filter=DexLayoutTest

Change-Id: Ice86d2c2c178ab96b5cd34bed204e6008fab34c8
diff --git a/dexlayout/dexlayout.cc b/dexlayout/dexlayout.cc
index 75afc78..91e99fd 100644
--- a/dexlayout/dexlayout.cc
+++ b/dexlayout/dexlayout.cc
@@ -1919,7 +1919,7 @@
   if (output) {
     // Layout information about what strings and code items are hot. Used by the writing process
     // to generate the sections that are stored in the oat file.
-    bool do_layout = info_ != nullptr;
+    bool do_layout = info_ != nullptr && !info_->IsEmpty();
     if (do_layout) {
       LayoutOutputFile(dex_file);
     }