[llvm] [NVPTX] Address warning and typo in fp128 support (PR #136207)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 17 14:41:24 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-backend-nvptx
Author: Alex MacLean (AlexMaclean)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/136207.diff
2 Files Affected:
- (modified) llvm/lib/Target/NVPTX/NVPTXAsmPrinter.h (+1-1)
- (modified) llvm/test/CodeGen/NVPTX/fp128-storage-type.ll (+1-1)
``````````diff
diff --git a/llvm/lib/Target/NVPTX/NVPTXAsmPrinter.h b/llvm/lib/Target/NVPTX/NVPTXAsmPrinter.h
index 9ed7e650e7b0c..978167ac19d59 100644
--- a/llvm/lib/Target/NVPTX/NVPTXAsmPrinter.h
+++ b/llvm/lib/Target/NVPTX/NVPTXAsmPrinter.h
@@ -125,7 +125,7 @@ class LLVM_LIBRARY_VISIBILITY NVPTXAsmPrinter : public AsmPrinter {
}
void addZeros(unsigned Num) {
- for (unsigned _ : llvm::seq(Num))
+ for ([[maybe_unused]] unsigned _ : llvm::seq(Num))
addByte(0);
}
diff --git a/llvm/test/CodeGen/NVPTX/fp128-storage-type.ll b/llvm/test/CodeGen/NVPTX/fp128-storage-type.ll
index 5b96f4978a7cb..9a16c11300c70 100644
--- a/llvm/test/CodeGen/NVPTX/fp128-storage-type.ll
+++ b/llvm/test/CodeGen/NVPTX/fp128-storage-type.ll
@@ -1,6 +1,6 @@
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
; RUN: llc < %s -mcpu=sm_20 | FileCheck %s
-; RUN: %if ptxas %{ llc < %s-mcpu=sm_20 | %ptxas-verify %}
+; RUN: %if ptxas %{ llc < %s -mcpu=sm_20 | %ptxas-verify %}
target triple = "nvptx64-unknown-cuda"
``````````
</details>
https://github.com/llvm/llvm-project/pull/136207
More information about the llvm-commits
mailing list