mirror of
https://github.com/intel/llvm.git
synced 2026-01-26 12:26:52 +08:00
[MLIR] Apply clang-tidy fixes for llvm-qualified-auto in TileAllocation.cpp (NFC)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user