Skip to content

Commit

Permalink
[GlobalOpt] Make extract_slice a non-leaf op (#18500)
Browse files Browse the repository at this point in the history
  • Loading branch information
IanWood1 authored Sep 13, 2024
1 parent febe0ed commit 70a5313
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -366,8 +366,8 @@ void registerUtilExternalModels(DialectRegistry &registry) {
// Never hoist empty and other pure metadata ops as a leaf. It's fine to
// hoist them as a part of a larger constant tree that does actual work.
HoistableNonLeafOpInterfaceHelper<
tensor::EmptyOp, tensor::ExpandShapeOp,
tensor::CollapseShapeOp>::registerOpInterface(context);
tensor::EmptyOp, tensor::ExpandShapeOp, tensor::CollapseShapeOp,
tensor::ExtractSliceOp>::registerOpInterface(context);
// Cases of trivial pack/unpack should be handled as canonicalizations
// before we get here, thus we're safe to always hoist.
AlwaysHoistableOpInterfaceHelper<
Expand Down

0 comments on commit 70a5313

Please sign in to comment.