Skip to content

Commit

Permalink
Propagate expand_shape past collapse_shape
Browse files Browse the repository at this point in the history
Signed-off-by: MaheshRavishankar <mravisha@smc300x-clt-r4c4-02.cs-clt.dcgpu>
  • Loading branch information
MaheshRavishankar authored and MaheshRavishankar committed Jan 10, 2025
1 parent 640a83f commit 8dd1bf9
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ void BubbleUpExpandShapesPass::runOnOperation() {
// that can be done later) of reshape ops.
tensor::populateFoldTensorEmptyPatterns(bubbleExpandShapePatterns);
bubbleExpandShapePatterns.insert<BubbleExpandThroughExtract>(context);
tensor::populateBubbleUpExpandShapePatterns(bubbleExpandShapePatterns);
tensor::ExpandShapeOp::getCanonicalizationPatterns(bubbleExpandShapePatterns,
context);

Expand Down

0 comments on commit 8dd1bf9

Please sign in to comment.