[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);
----------------
Artem-B wrote:

It could use a comment on why we may want to keep CPU empty in some cases.

https://github.com/llvm/llvm-project/pull/121834


More information about the llvm-commits mailing list