[llvm] f0f5545 - [NVPTX] Address warning and typo in fp128 support (#136207)

via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 17 15:45:12 PDT 2025


Author: Alex MacLean
Date: 2025-04-17T15:45:09-07:00
New Revision: f0f55453a2df8c984a7a824bb3face2d7ae18a7d

URL: https://github.com/llvm/llvm-project/commit/f0f55453a2df8c984a7a824bb3face2d7ae18a7d
DIFF: https://github.com/llvm/llvm-project/commit/f0f55453a2df8c984a7a824bb3face2d7ae18a7d.diff

LOG: [NVPTX] Address warning and typo in fp128 support (#136207)

Added: 
    

Modified: 
    llvm/lib/Target/NVPTX/NVPTXAsmPrinter.h
    llvm/test/CodeGen/NVPTX/fp128-storage-type.ll

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/NVPTX/NVPTXAsmPrinter.h b/llvm/lib/Target/NVPTX/NVPTXAsmPrinter.h
index aa953f4596bbd..65938a9f60cd7 100644
--- a/llvm/lib/Target/NVPTX/NVPTXAsmPrinter.h
+++ b/llvm/lib/Target/NVPTX/NVPTXAsmPrinter.h
@@ -125,8 +125,7 @@ class LLVM_LIBRARY_VISIBILITY NVPTXAsmPrinter : public AsmPrinter {
     }
 
     void addZeros(unsigned Num) {
-      for (unsigned _ : llvm::seq(Num)) {
-        (void)_;
+      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"
 


        


More information about the llvm-commits mailing list