From 4683ffdb3f590739cca7e26e02491e61121d4285 Mon Sep 17 00:00:00 2001 From: Vivek Agrawal <1678871+vmnit@users.noreply.github.com> Date: Wed, 9 Jul 2025 11:04:04 +0530 Subject: [PATCH 1/2] Fix unused variable issue --- lib/Dialect/Torch/Transforms/InlineGlobalSlots.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Dialect/Torch/Transforms/InlineGlobalSlots.cpp b/lib/Dialect/Torch/Transforms/InlineGlobalSlots.cpp index f3c60cc5e045..7ce7c39a6d40 100644 --- a/lib/Dialect/Torch/Transforms/InlineGlobalSlots.cpp +++ b/lib/Dialect/Torch/Transforms/InlineGlobalSlots.cpp @@ -251,7 +251,7 @@ bool InlineGlobalSlotsAnalysis::isValueSafeTransferFunction(Value value) { SmallVector getBackwardSliceIncludingRoot(Value initialValue) { SetVector sliceSet; - LogicalResult result = getBackwardSlice(initialValue, &sliceSet); + [[maybe_unused]] LogicalResult result = getBackwardSlice(initialValue, &sliceSet); assert(result.succeeded() && "expected a backward slice"); SmallVector slice; llvm::append_range(slice, sliceSet); From e27a09fd94368c71da754f0e31e31fef2c8224a5 Mon Sep 17 00:00:00 2001 From: Vivek Agrawal <1678871+vmnit@users.noreply.github.com> Date: Mon, 14 Jul 2025 22:11:15 +0530 Subject: [PATCH 2/2] fix formatting issue --- lib/Dialect/Torch/Transforms/InlineGlobalSlots.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Dialect/Torch/Transforms/InlineGlobalSlots.cpp b/lib/Dialect/Torch/Transforms/InlineGlobalSlots.cpp index 7ce7c39a6d40..4a15083ae083 100644 --- a/lib/Dialect/Torch/Transforms/InlineGlobalSlots.cpp +++ b/lib/Dialect/Torch/Transforms/InlineGlobalSlots.cpp @@ -251,7 +251,8 @@ bool InlineGlobalSlotsAnalysis::isValueSafeTransferFunction(Value value) { SmallVector getBackwardSliceIncludingRoot(Value initialValue) { SetVector sliceSet; - [[maybe_unused]] LogicalResult result = getBackwardSlice(initialValue, &sliceSet); + [[maybe_unused]] LogicalResult result = + getBackwardSlice(initialValue, &sliceSet); assert(result.succeeded() && "expected a backward slice"); SmallVector slice; llvm::append_range(slice, sliceSet);