Skip to content

Commit 9d24670

Browse files
committed
[AMDGPU] exclude r600 targets from NPM
1 parent fdc9e6d commit 9d24670

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -752,9 +752,6 @@ AMDGPUTargetMachine::AMDGPUTargetMachine(const Target &T, const Triple &TT,
752752
TLOF(createTLOF(getTargetTriple())) {
753753
initAsmInfo();
754754

755-
if (getSelectorType(*this) != SelectorType::GlobalISel)
756-
setNewPMForBackend(true);
757-
758755
if (TT.isAMDGCN()) {
759756
if (getMCSubtargetInfo()->checkFeatures("+wavefrontsize64"))
760757
MRI.reset(llvm::createGCNMCRegisterInfo(AMDGPUDwarfFlavour::Wave64));
@@ -1110,7 +1107,10 @@ GCNTargetMachine::GCNTargetMachine(const Target &T, const Triple &TT,
11101107
std::optional<Reloc::Model> RM,
11111108
std::optional<CodeModel::Model> CM,
11121109
CodeGenOptLevel OL, bool JIT)
1113-
: AMDGPUTargetMachine(T, TT, CPU, FS, Options, RM, CM, OL) {}
1110+
: AMDGPUTargetMachine(T, TT, CPU, FS, Options, RM, CM, OL) {
1111+
if (getSelectorType(*this) != SelectorType::GlobalISel)
1112+
setNewPMForBackend(true);
1113+
}
11141114

11151115
const TargetSubtargetInfo *
11161116
GCNTargetMachine::getSubtargetImpl(const Function &F) const {

0 commit comments

Comments
 (0)