Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a new -fglobal-isel option and make -fexperimental-isel an alias …
…for it. Since GlobalISel is maturing and is already on at -O0 for AArch64, it's not completely "experimental". Create a more appropriate driver flag and make the older option an alias for it. Differential Revision: https://reviews.llvm.org/D77103
- Loading branch information
Showing
5 changed files
with
36 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,35 @@ | ||
// REQUIRES: x86-registered-target,aarch64-registered-target | ||
|
||
// RUN: %clang -fglobal-isel -S -### %s 2>&1 | FileCheck --check-prefix=ENABLED %s | ||
// RUN: %clang -fno-global-isel -S -### %s 2>&1 | FileCheck --check-prefix=DISABLED %s | ||
|
||
// RUN: %clang -target aarch64 -fglobal-isel -S %s -### 2>&1 | FileCheck --check-prefix=ARM64-DEFAULT %s | ||
// RUN: %clang -target aarch64 -fglobal-isel -S -O0 %s -### 2>&1 | FileCheck --check-prefix=ARM64-O0 %s | ||
// RUN: %clang -target aarch64 -fglobal-isel -S -O2 %s -### 2>&1 | FileCheck --check-prefix=ARM64-O2 %s | ||
// RUN: %clang -target aarch64 -fglobal-isel -Wno-global-isel -S -O2 %s -### 2>&1 | FileCheck --check-prefix=ARM64-O2-NOWARN %s | ||
|
||
// RUN: %clang -target x86_64 -fglobal-isel -S %s -### 2>&1 | FileCheck --check-prefix=X86_64 %s | ||
|
||
// Now test the aliases. | ||
|
||
// RUN: %clang -fexperimental-isel -S -### %s 2>&1 | FileCheck --check-prefix=ENABLED %s | ||
// RUN: %clang -fno-experimental-isel -S -### %s 2>&1 | FileCheck --check-prefix=DISABLED %s | ||
|
||
// RUN: %clang -target aarch64 -fexperimental-isel -S %s -### 2>&1 | FileCheck --check-prefix=ARM64-DEFAULT %s | ||
// RUN: %clang -target aarch64 -fexperimental-isel -S -O0 %s -### 2>&1 | FileCheck --check-prefix=ARM64-O0 %s | ||
// RUN: %clang -target aarch64 -fexperimental-isel -S -O2 %s -### 2>&1 | FileCheck --check-prefix=ARM64-O2 %s | ||
// RUN: %clang -target aarch64 -fexperimental-isel -Wno-experimental-isel -S -O2 %s -### 2>&1 | FileCheck --check-prefix=ARM64-O2-NOWARN %s | ||
|
||
// RUN: %clang -target x86_64 -fexperimental-isel -S %s -### 2>&1 | FileCheck --check-prefix=X86_64 %s | ||
|
||
// ENABLED: "-mllvm" "-global-isel=1" | ||
// DISABLED: "-mllvm" "-global-isel=0" | ||
|
||
// ARM64-DEFAULT-NOT: warning: -fexperimental-sel | ||
// ARM64-DEFAULT-NOT: warning: -fglobal-isel | ||
// ARM64-DEFAULT-NOT: "-global-isel-abort=2" | ||
// ARM64-O0-NOT: warning: -fexperimental-sel | ||
// ARM64-O2: warning: -fexperimental-isel support is incomplete for this architecture at the current optimization level | ||
// ARM64-O0-NOT: warning: -fglobal-isel | ||
// ARM64-O2: warning: -fglobal-isel support is incomplete for this architecture at the current optimization level | ||
// ARM64-O2: "-mllvm" "-global-isel-abort=2" | ||
// ARM64-O2-NOWARN-NOT: warning: -fexperimental-isel | ||
// ARM64-O2-NOWARN-NOT: warning: -fglobal-isel | ||
|
||
// X86_64: -fexperimental-isel support for the 'x86_64' architecture is incomplete | ||
// X86_64: -fglobal-isel support for the 'x86_64' architecture is incomplete | ||
// X86_64: "-mllvm" "-global-isel-abort=2" |