[Mlir-commits] [mlir] Revert "[mlir][ArmSME] Suppress potential unused warning (#99573)" (PR #99578)

Chenguang Wang llvmlistbot at llvm.org
Thu Jul 18 14:59:22 PDT 2024


https://github.com/wecing created https://github.com/llvm/llvm-project/pull/99578

This reverts commit 05bce3f079b677edd0efd28e3923f4776ffb8b59.

The work was already done in 99faa03.

>From 9b369c8627c10341409ef64437d721dc94a1b42e Mon Sep 17 00:00:00 2001
From: Chenguang Wang <chenguangwang at google.com>
Date: Thu, 18 Jul 2024 14:58:29 -0700
Subject: [PATCH] Revert "[mlir][ArmSME] Suppress potential unused warning
 (#99573)"

This reverts commit 05bce3f079b677edd0efd28e3923f4776ffb8b59.

The work was already done in 99faa03.
---
 mlir/lib/Dialect/ArmSME/Transforms/TileAllocation.cpp | 1 -
 1 file changed, 1 deletion(-)

diff --git a/mlir/lib/Dialect/ArmSME/Transforms/TileAllocation.cpp b/mlir/lib/Dialect/ArmSME/Transforms/TileAllocation.cpp
index e3fc3473c6c6b..3a2042d23e534 100644
--- a/mlir/lib/Dialect/ArmSME/Transforms/TileAllocation.cpp
+++ b/mlir/lib/Dialect/ArmSME/Transforms/TileAllocation.cpp
@@ -619,7 +619,6 @@ void allocateTilesToLiveRanges(
         // Remove the live range from the active/inactive sets.
         if (!activeRanges.remove(rangeToSpill)) {
           bool removed = inactiveRanges.remove(rangeToSpill);
-          (void)removed;
           assert(removed && "expected a range to be removed!");
           (void)removed;
         }



More information about the Mlir-commits mailing list