ac: replace HAVE_LLVM with LLVM_VERSION_MAJOR for atomic-optimizations
authorMarek Olšák <marek.olsak@amd.com>
Wed, 11 Sep 2019 14:56:07 +0000 (10:56 -0400)
committerMarek Olšák <marek.olsak@amd.com>
Wed, 11 Sep 2019 14:56:46 +0000 (10:56 -0400)
trivial

src/amd/common/ac_llvm_util.c

index deca5b98772b37ba35e1bd48f7f968e980cd8715..64942670b6c09599f4ab2f40313a25851a1bd7d7 100644 (file)
@@ -63,7 +63,7 @@ static void ac_init_llvm_target()
                "mesa",
                "-simplifycfg-sink-common=false",
                "-global-isel-abort=2",
-#if HAVE_LLVM >= 0x1000
+#if LLVM_VERSION_MAJOR >= 10
                /* Atomic optimizations require LLVM 10.0 for gfx10 support. */
                "-amdgpu-atomic-optimizations=true",
 #endif