HomePhabricator

Fix FoldReshapeOpWithUnitExtent generating illegal reshape

Authored by asaadaldien on Apr 19 2021, 4:52 PM.

Description

Fix FoldReshapeOpWithUnitExtent generating illegal reshape

This will prevent fusion that spains all dims and generates
(d0, d1, ...) -> () reshape that isn't legal

Differential Revision: https://reviews.llvm.org/D100805

Details