Skip to content

Commit

Permalink
[GPU] Fix the propagation control function logic. (iree-org#17869)
Browse files Browse the repository at this point in the history
This is a follow-up from the integrate comment:
iree-org#17827 (comment)

The comment was not addressed in the integrate PR because the CI was not
stable. Some runners were off, and we decided to land the PR and sent a
follow-up later. See
https://discord.com/channels/689900678990135345/1080178290188374049/1260330876651307090
for more details.
  • Loading branch information
hanhanW authored and saienduri committed Jul 12, 2024
1 parent e4dfcc3 commit 0b75bd4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ void PackToIntrinsicsPass::runOnOperation() {
linalg::ControlPropagationFn control = [](OpOperand *opOperand) -> bool {
Operation *producer = opOperand->get().getDefiningOp();
Operation *consumer = opOperand->getOwner();
return !getLoweringConfig(producer) || !getLoweringConfig(consumer);
return !getLoweringConfig(producer) && !getLoweringConfig(consumer);
};

linalg::populateDataLayoutPropagationPatterns(patterns, control);
Expand Down

0 comments on commit 0b75bd4

Please sign in to comment.