Separate out PGO profile files per arch

Bug: http://b/78259283

Specify separate PGO profiles for AArch64/ARM and x86_64/x86.  This
allows per-arch profile collection that exercises ART's code generation
for the corresponding 32-bit and 64-bit ABIs.

Test: Build Sailfish and x86_64 targets and verify that corresponding
profile files are read.

Change-Id: Iad3a657411676952de5ed446db4dd4e754ea9e11
Merged-In: Iad3a657411676952de5ed446db4dd4e754ea9e11
(cherry picked from commit 42d5805b30b095eb1abd39d99ed71d9fa2b7c03b)
diff --git a/compiler/Android.bp b/compiler/Android.bp
index e42261c..32e42bc 100644
--- a/compiler/Android.bp
+++ b/compiler/Android.bp
@@ -218,7 +218,10 @@
 
 art_cc_library {
     name: "libart-compiler",
-    defaults: ["libart-compiler-defaults"],
+    defaults: [
+        "libart-compiler-defaults",
+        "dex2oat-pgo-defaults",
+    ],
     codegen: {
         arm: {
             // VIXL assembly support for ARM targets.
@@ -252,11 +255,6 @@
         "libdexfile",
     ],
 
-    pgo: {
-        instrumentation: true,
-        profile_file: "art/dex2oat.profdata",
-        benchmarks: ["dex2oat"],
-    },
     target: {
         android: {
             lto: {