llvm-project
917f078a - [mlir][Transforms] Allow RemoveDeadValues to process a function whose the last block is not the exit. (#156123)

Commit
104 days ago
[mlir][Transforms] Allow RemoveDeadValues to process a function whose the last block is not the exit. (#156123) 'processFuncOp' queries the number of returned values of a function using the terminator of the last block's getNumOperands(). It presumes the last block is the exit. It is not always the case. This patch fixes the bug by querying from FunctionInterfaceOp directly.
Author
Parents
Loading