From 523f4b5422efe12a394025ced31fe81b5ca6f279 Mon Sep 17 00:00:00 2001 From: xuechen417 Date: Thu, 7 Dec 2023 13:37:29 +0800 Subject: [PATCH] PatchBufferOp: fix a logic error If `impl.run()` returns true, it should no perserve. --- imported/llvm-dialects | 2 +- lgc/patch/PatchBufferOp.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/imported/llvm-dialects b/imported/llvm-dialects index 16a0e93317..8c54ca076f 160000 --- a/imported/llvm-dialects +++ b/imported/llvm-dialects @@ -1 +1 @@ -Subproject commit 16a0e93317979f0b281458a5f3b830e0426983b1 +Subproject commit 8c54ca076fbf841dc5d22da8b6a1d434a01b153c diff --git a/lgc/patch/PatchBufferOp.cpp b/lgc/patch/PatchBufferOp.cpp index 58baf82805..4a9d3bab0a 100644 --- a/lgc/patch/PatchBufferOp.cpp +++ b/lgc/patch/PatchBufferOp.cpp @@ -97,7 +97,7 @@ PreservedAnalyses PatchBufferOp::run(Function &function, FunctionAnalysisManager #endif PatchBufferOpImpl impl(function.getContext(), *pipelineState, uniformityInfo); - if (!impl.run(function)) + if (impl.run(function)) return PreservedAnalyses::none(); return PreservedAnalyses::all(); }