aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMehdi Amini <joker.eph@gmail.com>2025-08-21 06:29:49 -0700
committerMehdi Amini <joker.eph@gmail.com>2025-10-27 22:22:54 -0700
commit9f85e7e16db7fd4fe32a69933260a1059ab589ec (patch)
tree18a39bd69ceaff6d48db42fddbf5ba6862dc80c6
parentdc76ac607181042bbd420afd2e9d205e411a5857 (diff)
downloadllvm-9f85e7e16db7fd4fe32a69933260a1059ab589ec.zip
llvm-9f85e7e16db7fd4fe32a69933260a1059ab589ec.tar.gz
llvm-9f85e7e16db7fd4fe32a69933260a1059ab589ec.tar.bz2
[MLIR] Apply clang-tidy fixes for llvm-qualified-auto in TileAllocation.cpp (NFC)
-rw-r--r--mlir/lib/Dialect/ArmSME/Transforms/TileAllocation.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/mlir/lib/Dialect/ArmSME/Transforms/TileAllocation.cpp b/mlir/lib/Dialect/ArmSME/Transforms/TileAllocation.cpp
index d925c19..a651710 100644
--- a/mlir/lib/Dialect/ArmSME/Transforms/TileAllocation.cpp
+++ b/mlir/lib/Dialect/ArmSME/Transforms/TileAllocation.cpp
@@ -216,8 +216,8 @@ void splitCondBranches(IRRewriter &rewriter, FunctionOpInterface function) {
for (auto condBranch : worklist) {
auto loc = condBranch.getLoc();
Block *block = condBranch->getBlock();
- auto newTrueBranch = rewriter.splitBlock(block, block->end());
- auto newFalseBranch = rewriter.splitBlock(block, block->end());
+ auto *newTrueBranch = rewriter.splitBlock(block, block->end());
+ auto *newFalseBranch = rewriter.splitBlock(block, block->end());
insertJump(loc, newTrueBranch, condBranch.getTrueDest(),
condBranch.getTrueDestOperands());
insertJump(loc, newFalseBranch, condBranch.getFalseDest(),
@@ -382,7 +382,7 @@ gatherTileLiveRanges(DenseMap<Operation *, unsigned> const &operationToIndexMap,
// Find or create a live range for `value`.
auto [it, _] = liveRanges.try_emplace(value, liveRangeAllocator);
LiveRange &valueLiveRange = it->second;
- auto lastUseInBlock = livenessInfo.getEndOperation(value, firstUseOrDef);
+ auto *lastUseInBlock = livenessInfo.getEndOperation(value, firstUseOrDef);
// Add the interval [firstUseOrDef, lastUseInBlock) to the live range.
unsigned startOpIdx =
operationToIndexMap.at(firstUseOrDef) + (liveAtBlockEntry ? -1 : 0);