File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
mlir/lib/Conversion/Normalize Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -394,8 +394,8 @@ void NormalizePass::collectOutputOperations(
394394// / - Terminator operations are outputs
395395// / - Any operation that implements MemoryEffectOpInterface and reports at
396396// / least one MemoryEffects::Write effect is an output
397- // / - func::CallOp is treated as an output (calls are conservatively assumed to
398- // / possibly produce side effects).
397+ // / - Any operation that implements CallOpInterface is treated as an output
398+ // / (calls are conservatively assumed to possibly produce side effects).
399399bool NormalizePass::isOutput (Operation &op) const noexcept {
400400 if (op.hasTrait <OpTrait::IsTerminator>())
401401 return true ;
@@ -408,7 +408,7 @@ bool NormalizePass::isOutput(Operation &op) const noexcept {
408408 return true ;
409409 }
410410
411- if (auto call = dyn_cast<func::CallOp>( op))
411+ if (dyn_cast<CallOpInterface>(& op))
412412 return true ;
413413
414414 return false ;
You can’t perform that action at this time.
0 commit comments