Passes#
Applies to Linux
2024-05-07
4 min read time
dead_code_elimination#
-
struct dead_code_elimination#
Remove instructions where the output is not used.
eliminate_common_subexpression#
-
struct eliminate_common_subexpression#
Remove identical instructions.
eliminate_concat#
eliminate_contiguous#
eliminate_identity#
-
struct eliminate_identity#
Remove identity instructions. Currently when used as the last pass, it will preserve the semantics of previous program state, therefore dead code elimination should not be used afterwards.
eliminate_pad#
-
struct eliminate_pad#
Remove pads if they can be written as an attribute to another op (im2col, convolution, pooling)