[llvm] [NVPTX] Do not run the NVVMReflect pass as part of the normal pipeline (PR #121834)
Artem Belevich via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 7 12:08:53 PST 2025
================
@@ -35,9 +35,10 @@ void NVPTXSubtarget::anchor() {}
NVPTXSubtarget &NVPTXSubtarget::initializeSubtargetDependencies(StringRef CPU,
StringRef FS) {
// Provide the default CPU if we don't have one.
- TargetName = std::string(CPU.empty() ? "sm_30" : CPU);
+ TargetName = std::string(CPU);
- ParseSubtargetFeatures(TargetName, /*TuneCPU*/ TargetName, FS);
+ ParseSubtargetFeatures(CPU.empty() ? "sm_30" : CPU,
----------------
Artem-B wrote:
`CPU.empty() ? "sm_30" : CPU` -> `getTargetName()`
https://github.com/llvm/llvm-project/pull/121834
More information about the llvm-commits
mailing list