Skip to content

Commit 6ea2cac

Browse files
Clang formatting
1 parent e3d5d54 commit 6ea2cac

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

mlir/lib/Transforms/RemoveDeadValues.cpp

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@ struct FunctionToCleanUp {
8888
struct OperationToCleanup {
8989
Operation *op;
9090
BitVector nonLive;
91-
Operation *callee = nullptr; // Optional: For CallOpInterface ops, stores the callee function
91+
Operation *callee =
92+
nullptr; // Optional: For CallOpInterface ops, stores the callee function
9293
};
9394

9495
struct BlockArgsToCleanup {
@@ -318,7 +319,8 @@ static void processFuncOp(FunctionOpInterface funcOp, Operation *module,
318319
// cleanUpDeadVals runs (it keys off CallOpInterface). The BitVector is
319320
// intentionally all false to avoid generic erasure.
320321
// Store the funcOp as the callee to avoid expensive symbol lookup later.
321-
cl.operands.push_back({callOp, BitVector(callOp->getNumOperands(), false), funcOp.getOperation()});
322+
cl.operands.push_back({callOp, BitVector(callOp->getNumOperands(), false),
323+
funcOp.getOperation()});
322324
}
323325

324326
// Do (3).
@@ -770,13 +772,15 @@ static void cleanUpDeadVals(RDVFinalCleanupList &list) {
770772
LDBG() << "Cleaning up " << list.operands.size() << " operand lists";
771773
for (OperationToCleanup &o : list.operands) {
772774
if (auto call = dyn_cast<CallOpInterface>(o.op)) {
773-
// Use the stored callee reference if available, avoiding expensive symbol lookup
775+
// Use the stored callee reference if available, avoiding expensive symbol
776+
// lookup
774777
if (o.callee) {
775778
auto it = erasedFuncArgs.find(o.callee);
776779
if (it != erasedFuncArgs.end()) {
777780
const BitVector &deadArgIdxs = it->second;
778781
MutableOperandRange args = call.getArgOperandsMutable();
779-
// First, erase the call arguments corresponding to erased callee args.
782+
// First, erase the call arguments corresponding to erased callee
783+
// args.
780784
for (int i = static_cast<int>(args.size()) - 1; i >= 0; --i) {
781785
if (i < static_cast<int>(deadArgIdxs.size()) && deadArgIdxs.test(i))
782786
args.erase(i);

mlir/test/lib/Dialect/Test/TestDialect.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ MutableOperandRange CallWithSegmentsOp::getArgOperandsMutable() {
467467
// args size stored in the attribute.
468468
auto sizes = sizesAttr.asArrayRef();
469469
unsigned start = static_cast<unsigned>(sizes[0]); // prefix size
470-
unsigned len = static_cast<unsigned>(sizes[1]); // args size
470+
unsigned len = static_cast<unsigned>(sizes[1]); // args size
471471

472472
NamedAttribute segNamed(segName, sizesAttr);
473473
MutableOperandRange::OperandSegment binding{kTestCallWithSegmentsArgsSegIndex,

0 commit comments

Comments
 (0)