Skip to content

Commit 0c0ef5a

Browse files
committed
[AMDGPU] exclude r600 targets from NPM
1 parent 7046f2d commit 0c0ef5a

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
@@ -757,9 +757,6 @@ AMDGPUTargetMachine::AMDGPUTargetMachine(const Target &T, const Triple &TT,
757757
TLOF(createTLOF(getTargetTriple())) {
758758
initAsmInfo();
759759

760-
if (getSelectorType(*this) != SelectorType::GlobalISel)
761-
setNewPMForBackend(true);
762-
763760
if (TT.isAMDGCN()) {
764761
if (getMCSubtargetInfo()->checkFeatures("+wavefrontsize64"))
765762
MRI.reset(llvm::createGCNMCRegisterInfo(AMDGPUDwarfFlavour::Wave64));
@@ -1120,7 +1117,10 @@ GCNTargetMachine::GCNTargetMachine(const Target &T, const Triple &TT,
11201117
std::optional<Reloc::Model> RM,
11211118
std::optional<CodeModel::Model> CM,
11221119
CodeGenOptLevel OL, bool JIT)
1123-
: AMDGPUTargetMachine(T, TT, CPU, FS, Options, RM, CM, OL) {}
1120+
: AMDGPUTargetMachine(T, TT, CPU, FS, Options, RM, CM, OL) {
1121+
if (getSelectorType(*this) != SelectorType::GlobalISel)
1122+
setNewPMForBackend(true);
1123+
}
11241124

11251125
const TargetSubtargetInfo *
11261126
GCNTargetMachine::getSubtargetImpl(const Function &F) const {

0 commit comments

Comments
 (0)