|
tvm
|
Compare two expressions recursively and check if they are equal to each other without var remapping. More...
#include <expr.h>
Public Member Functions | |
| TVM_TIRX_DLL bool | operator() (const PrimExpr &lhs, const PrimExpr &rhs) const |
Compare two expressions recursively and check if they are equal to each other without var remapping.
This function does not remap variable bindings, it will not return true for (let x = 1 in x + 1) vs (let y = 1 in y + 1), unless x.same_as(y).
Use StructuralEqual for such cases.
Due to the restriction of not remapping variables, this function can run faster than StructuralEqual and can be used as a utility function during arithmetic simplifications.
| TVM_TIRX_DLL bool tvm::prim::ExprDeepEqual::operator() | ( | const PrimExpr & | lhs, |
| const PrimExpr & | rhs | ||
| ) | const |