[clang] [clang] Add fbasic-block-sections support for AArch64 (PR #80916)

2024-02-07 Thread Daniel Hoekwater via cfe-commits
@@ -5972,6 +5972,15 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA, << A->getAsString(Args) << A->getValue(); else A->render(Args, CmdArgs); +} else if (Triple.isAArch64()) { + // "all" is not supported on AArch64 since branc

[clang] [clang] Add fbasic-block-sections support for AArch64 (PR #80916)

2024-02-07 Thread Daniel Hoekwater via cfe-commits
https://github.com/dhoekwater updated https://github.com/llvm/llvm-project/pull/80916 >From 18f602b2cc0c603564c17737241bb9f188b965e7 Mon Sep 17 00:00:00 2001 From: Daniel Hoekwater Date: Wed, 7 Feb 2024 01:03:17 + Subject: [PATCH] [Driver] Allow -fbasic-block-sections for AArch64 ELF Basic

[clang] [clang] Add fbasic-block-sections support for AArch64 (PR #80916)

2024-02-07 Thread Daniel Hoekwater via cfe-commits
https://github.com/dhoekwater updated https://github.com/llvm/llvm-project/pull/80916 >From 36f9de4ab82f4f27131f561417749481eada0f3e Mon Sep 17 00:00:00 2001 From: Daniel Hoekwater Date: Wed, 7 Feb 2024 01:03:17 + Subject: [PATCH] [Driver] Allow -fbasic-block-sections for AArch64 ELF Basic

[clang] [clang] Add fbasic-block-sections support for AArch64 (PR #80916)

2024-02-07 Thread Daniel Hoekwater via cfe-commits
https://github.com/dhoekwater updated https://github.com/llvm/llvm-project/pull/80916 >From ccd5fd925a3629d99c0e12ba4757758f740c1407 Mon Sep 17 00:00:00 2001 From: Daniel Hoekwater Date: Wed, 7 Feb 2024 01:03:17 + Subject: [PATCH] [Driver] Allow -fbasic-block-sections for AArch64 ELF Basic

[clang] [clang] Add fbasic-block-sections support for AArch64 (PR #80916)

2024-02-07 Thread Fangrui Song via cfe-commits
MaskRay wrote: Perhaps `[Driver] Allow -fbasic-block-sections for ELF AArch64' https://github.com/llvm/llvm-project/pull/80916 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Add fbasic-block-sections support for AArch64 (PR #80916)

2024-02-06 Thread Mingming Liu via cfe-commits
@@ -5972,6 +5972,15 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA, << A->getAsString(Args) << A->getValue(); else A->render(Args, CmdArgs); +} else if (Triple.isAArch64()) { + // "all" is not supported on AArch64 since branc

[clang] [clang] Add fbasic-block-sections support for AArch64 (PR #80916)

2024-02-06 Thread Mingming Liu via cfe-commits
https://github.com/minglotus-6 edited https://github.com/llvm/llvm-project/pull/80916 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Add fbasic-block-sections support for AArch64 (PR #80916)

2024-02-06 Thread Mingming Liu via cfe-commits
https://github.com/minglotus-6 commented: Optional suggestion to revise the title as something like 'Clang options for basic block sections on aarch64" https://github.com/llvm/llvm-project/pull/80916 ___ cfe-commits mailing list cfe-commits@lists.llvm

[clang] [clang] Add fbasic-block-sections support for AArch64 (PR #80916)

2024-02-06 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Daniel Hoekwater (dhoekwater) Changes Basic block sections "all" doesn't work on AArch64 since branch relaxation may create new basic blocks. However, the other basic block section modes should work out of the box since machine function spl

[clang] [clang] Add fbasic-block-sections support for AArch64 (PR #80916)

2024-02-06 Thread Daniel Hoekwater via cfe-commits
https://github.com/dhoekwater created https://github.com/llvm/llvm-project/pull/80916 Basic block sections "all" doesn't work on AArch64 since branch relaxation may create new basic blocks. However, the other basic block section modes should work out of the box since machine function splitting a