[llvm] [NVPTX][NFC] Refactoring and cleanup in NVPTXISelLowering (PR #137222)

Artem Belevich via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 24 15:49:54 PDT 2025


================
@@ -3388,49 +3373,55 @@ SDValue NVPTXTargetLowering::LowerFormalArguments(
   //     individually present in Ins.
   // So a different index should be used for indexing into Ins.
   // See similar issue in LowerCall.
-  unsigned InsIdx = 0;
+  const auto *In = Ins.begin();
----------------
Artem-B wrote:

Yup. It's a really nice cleanup. 

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


More information about the llvm-commits mailing list