OSDN Git Service

android: [AArch64][GlobalISel] Add a post-legalizer combiner with a very simple combine.
authorMauro Rossi <issor.oruam@gmail.com>
Fri, 24 Jul 2020 22:20:20 +0000 (00:20 +0200)
committerMauro Rossi <issor.oruam@gmail.com>
Thu, 15 Apr 2021 11:05:13 +0000 (13:05 +0200)
Port to Android.bp of commit 49a4f3f7d88f61a81279de3d4e1c734ab0363228
"[AArch64][GlobalISel] Add a post-legalizer combiner with a very simple combine."

Signed-off-by: Mauro Rossi <issor.oruam@gmail.com>
llvm/lib/Target/AArch64/Android.bp
llvm/soong/tblgen.go

index 40ad882..697e86f 100644 (file)
@@ -44,7 +44,8 @@ llvm_tblgen {
         "AArch64GenSystemOperands.inc",
         "AArch64GenRegisterBank.inc",
         "AArch64GenGlobalISel.inc",
-        "AArch64GenGICombiner.inc",
+        "AArch64GenPreLegalizeGICombiner.inc",
+        "AArch64GenPostLegalizeGICombiner.inc",
     ],
 }
 
index d8f74e3..c015cf6 100644 (file)
@@ -139,8 +139,10 @@ func outToGenerator(ctx android.ModuleContext, out string) string {
                return "-gen-dfa-packetizer"
        case strings.HasSuffix(out, "GenRegisterBank.inc"):
                return "-gen-register-bank"
-       case strings.HasSuffix(out, "GenGICombiner.inc"):
+       case strings.HasSuffix(out, "AArch64GenPreLegalizeGICombiner.inc"):
                return "-gen-global-isel-combiner -combiners=\"AArch64PreLegalizerCombinerHelper\""
+       case strings.HasSuffix(out, "AArch64GenPostLegalizeGICombiner.inc"):
+               return "-gen-global-isel-combiner -combiners=\"AArch64PostLegalizerCombinerHelper\""
        case strings.HasSuffix(out, "GenGlobalISel.inc"):
                return "-gen-global-isel"
        case strings.HasSuffix(out, "X86GenEVEX2VEXTables.inc"):