Skip to content

Commit

Permalink
[Mosaic] apply_vector_layout C++: Fix check in vector.broadcast rule
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 580115242
  • Loading branch information
tlongeri authored and jax authors committed Nov 7, 2023
1 parent 5a1731c commit c5d6df4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1888,7 +1888,7 @@ LogicalResult vector_broadcast_rule(RewriteContext &ctx, Operation &op,
return op.emitOpError("Not implemented: unsupported tiling");
}
int64_t num_tiles = layout_in.tilesPerVreg(ctx.target_shape);
CHECK(!(*(dim_eq.end() - 1) || !(*(dim_eq.end() - 2))));
CHECK(!*(dim_eq.end() - 1) || !*(dim_eq.end() - 2));
if (*(dim_eq.end() - 1)) { // Sublane broadcast
if (num_tiles != 1) {
return op.emitOpError(
Expand Down

0 comments on commit c5d6df4

Please sign in to comment.