mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 20:38:06 +02:00
ac: enable LLVM atomic optimizations
This commit is contained in:
parent
263136fb5d
commit
d979e5bfab
1 changed files with 9 additions and 1 deletions
|
|
@ -59,7 +59,15 @@ static void ac_init_llvm_target()
|
|||
* This option tells the backend to fall-back to SelectionDAG and print
|
||||
* a diagnostic message if global isel fails.
|
||||
*/
|
||||
const char *argv[] = { "mesa", "-simplifycfg-sink-common=false", "-global-isel-abort=2" };
|
||||
const char *argv[] = {
|
||||
"mesa",
|
||||
"-simplifycfg-sink-common=false",
|
||||
"-global-isel-abort=2",
|
||||
#if HAVE_LLVM >= 0x1000
|
||||
/* Atomic optimizations require LLVM 10.0 for gfx10 support. */
|
||||
"-amdgpu-atomic-optimizations=true",
|
||||
#endif
|
||||
};
|
||||
LLVMParseCommandLineOptions(ARRAY_SIZE(argv), argv, NULL);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue