We are working on Dyn-shape model compilation with Relay VM, and currently running into this issue, although this redundant Expr may be eliminated through compilation with clang/gcc O2 option (@lygztq has located the LLVM::EarlyCSE pass may help), but we hope to fix it within TIR scope, avoid mis-conception for us developers.
2 Likes