Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
229 changes: 56 additions & 173 deletions tests/transforms/scalar/test_algebraic_simplify.py

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions transforms/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
from .scalar import (
CSEPass,
ConstantFoldPass,
AlgebraicSimplifyPass,
)

# Combine transforms
Expand All @@ -44,7 +43,6 @@
# Scalar
'CSEPass',
'ConstantFoldPass',
'AlgebraicSimplifyPass',
# Combine
'ConcatCombinePass',
# Vectorize
Expand Down
5 changes: 2 additions & 3 deletions transforms/scalar/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
类似 LLVM 的 InstCombine、DCE、CSE 等 Pass。

包含的 Pass:
- algebraic_simplify.py : 代数恒等式化简(包括 Identity 折叠、算术/逻辑/比较恒等变换)
- algebraic_simplify/ : 代数恒等式化简(包括 Identity 折叠、算术/逻辑/比较恒等变换)
- cse.py : 公共子表达式消除(签名去重)

特点:
Expand All @@ -17,10 +17,9 @@

from .cse import CSEPass
from .constant_fold import ConstantFoldPass
from .algebraic_simplify import AlgebraicSimplifyPass
from .algebraic_simplify import *

__all__ = [
'CSEPass',
'ConstantFoldPass',
'AlgebraicSimplifyPass',
]
Loading