@@ -88,7 +88,8 @@ struct FunctionToCleanUp {
8888struct 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
9495struct 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);
0 commit comments