[llvm] 286ca0f - Silence warning from unit test
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Sat May 23 10:24:56 PDT 2020
Author: Matt Arsenault
Date: 2020-05-23T13:24:42-04:00
New Revision: 286ca0f7fd6bf26923f3df464e6a74d032f242ea
URL: https://github.com/llvm/llvm-project/commit/286ca0f7fd6bf26923f3df464e6a74d032f242ea
DIFF: https://github.com/llvm/llvm-project/commit/286ca0f7fd6bf26923f3df464e6a74d032f242ea.diff
LOG: Silence warning from unit test
This was printing about r600 not being a valid subtarget for an amdgcn
triple. This is an awkward place because r600 and amdgcn unfortunately
occupy the same target. Silence the warning by specifying an explicit
subtarget.
Added:
Modified:
llvm/unittests/MI/LiveIntervalTest.cpp
Removed:
################################################################################
diff --git a/llvm/unittests/MI/LiveIntervalTest.cpp b/llvm/unittests/MI/LiveIntervalTest.cpp
index f0be9709332b..6faa8abd4cd8 100644
--- a/llvm/unittests/MI/LiveIntervalTest.cpp
+++ b/llvm/unittests/MI/LiveIntervalTest.cpp
@@ -45,7 +45,7 @@ std::unique_ptr<LLVMTargetMachine> createTargetMachine() {
TargetOptions Options;
return std::unique_ptr<LLVMTargetMachine>(static_cast<LLVMTargetMachine*>(
- T->createTargetMachine("AMDGPU", "", "", Options, None, None,
+ T->createTargetMachine("AMDGPU", "gfx900", "", Options, None, None,
CodeGenOpt::Aggressive)));
}
More information about the llvm-commits
mailing list