Fix NVPTX TargetMachine construction to use reloc/code model flags only if explicitly set. Fixes failures caused by r348585.
PiperOrigin-RevId: 224560930
This commit is contained in:
parent
9fffd26041
commit
4f543e588a
@ -199,8 +199,7 @@ std::unique_ptr<llvm::TargetMachine> GetTargetMachine(
|
|||||||
}
|
}
|
||||||
return absl::WrapUnique(target->createTargetMachine(
|
return absl::WrapUnique(target->createTargetMachine(
|
||||||
triple.str(), llvm_ir::AsStringRef(cpu_name), "+ptx60", target_options,
|
triple.str(), llvm_ir::AsStringRef(cpu_name), "+ptx60", target_options,
|
||||||
Optional<Reloc::Model>(RelocModel), Optional<CodeModel::Model>(CMModel),
|
getRelocModel(), getCodeModel(), codegen_opt_level));
|
||||||
codegen_opt_level));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Adds the standard LLVM optimization passes, based on the speed optimization
|
// Adds the standard LLVM optimization passes, based on the speed optimization
|
||||||
|
Loading…
Reference in New Issue
Block a user