diff --git a/compiler/src/iree/compiler/Codegen/Dialect/GPU/Transforms/PackToIntrinsics.cpp b/compiler/src/iree/compiler/Codegen/Dialect/GPU/Transforms/PackToIntrinsics.cpp index 4e9b40ec35b3..df0ff1c73ecc 100644 --- a/compiler/src/iree/compiler/Codegen/Dialect/GPU/Transforms/PackToIntrinsics.cpp +++ b/compiler/src/iree/compiler/Codegen/Dialect/GPU/Transforms/PackToIntrinsics.cpp @@ -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);