[llvm] [NVPTX] Only run LowerUnreachable when necessary (PR #109868)

Artem Belevich via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 9 11:07:16 PDT 2024


================
@@ -95,6 +95,7 @@ class NVPTXSubtarget : public NVPTXGenSubtargetInfo {
   bool hasDotInstructions() const {
     return SmVersion >= 61 && PTXVersion >= 50;
   }
+  bool hasPTXASUnreachableBug() const { return PTXVersion < 83; }
----------------
Artem-B wrote:

I'd add a comment referring to the relevant issue.

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


More information about the llvm-commits mailing list