[PATCH] D15557: [AArch64] Enable PostRAScheduler for AArch64 generic build

James Molloy via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 16 00:03:17 PST 2015


Hi,

I think this makes sense. LGTM!

James

On Wed, 16 Dec 2015 at 06:56 MinSeong KIM via llvm-commits <
llvm-commits at lists.llvm.org> wrote:

> MinSeongKIM created this revision.
> MinSeongKIM added reviewers: jmolloy, t.p.northover, mcrosier.
> MinSeongKIM added a subscriber: llvm-commits.
> Herald added subscribers: rengolin, aemerson.
>
> This patch enables PostRAScheduler specifically for AArch64 generic build,
> which is beneficial from the performance perspective.
> Speedups up to 2 to 7% for some benchmarks on A57 and A53 are observed.
> Also benchmarks from LLVM test-suite did not regress.
>
> http://reviews.llvm.org/D15557
>
> Files:
>   lib/Target/AArch64/AArch64Subtarget.h
>
> Index: lib/Target/AArch64/AArch64Subtarget.h
> ===================================================================
> --- lib/Target/AArch64/AArch64Subtarget.h
> +++ lib/Target/AArch64/AArch64Subtarget.h
> @@ -102,7 +102,7 @@
>    const Triple &getTargetTriple() const { return TargetTriple; }
>    bool enableMachineScheduler() const override { return true; }
>    bool enablePostRAScheduler() const override {
> -    return isCortexA53() || isCortexA57();
> +    return isGeneric() || isCortexA53() || isCortexA57();
>    }
>
>    bool hasV8_1aOps() const { return HasV8_1aOps; }
> @@ -139,6 +139,7 @@
>    bool isTargetELF() const { return TargetTriple.isOSBinFormatELF(); }
>    bool isTargetMachO() const { return TargetTriple.isOSBinFormatMachO(); }
>
> +  bool isGeneric() const { return CPUString == "generic"; }
>    bool isCyclone() const { return CPUString == "cyclone"; }
>    bool isCortexA57() const { return CPUString == "cortex-a57"; }
>    bool isCortexA53() const { return CPUString == "cortex-a53"; }
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151216/4b2b3715/attachment.html>


More information about the llvm-commits mailing list