[llvm] 796124f - [SPIRV] Fix the wrong patch from https://reviews.llvm.org/D131886
Michael Liao via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 23 08:27:26 PDT 2022
Author: Michael Liao
Date: 2022-08-23T11:18:35-04:00
New Revision: 796124f00468870b5d4379c6b4a2a8e5dd9d6a63
URL: https://github.com/llvm/llvm-project/commit/796124f00468870b5d4379c6b4a2a8e5dd9d6a63
DIFF: https://github.com/llvm/llvm-project/commit/796124f00468870b5d4379c6b4a2a8e5dd9d6a63.diff
LOG: [SPIRV] Fix the wrong patch from https://reviews.llvm.org/D131886
- The body of that predicate lambda is removed by mistake.
Added:
Modified:
llvm/lib/Target/SPIRV/SPIRVModuleAnalysis.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/SPIRV/SPIRVModuleAnalysis.cpp b/llvm/lib/Target/SPIRV/SPIRVModuleAnalysis.cpp
index d9bb5a248f00..e972e48de62e 100644
--- a/llvm/lib/Target/SPIRV/SPIRVModuleAnalysis.cpp
+++ b/llvm/lib/Target/SPIRV/SPIRVModuleAnalysis.cpp
@@ -79,6 +79,8 @@ getSymbolicOperandRequirements(SPIRV::OperandCategory::OperandCategory Category,
// capability requirements, use the list of extensions (if the subtarget
// can handle them all).
if (llvm::all_of(ReqExts, [&ST](const SPIRV::Extension::Extension &Ext) {
+ return ST.canUseExtension(Ext);
+ })) {
return {true, {}, ReqExts, 0, 0}; // TODO: add versions to extensions.
}
return {false, {}, {}, 0, 0};
More information about the llvm-commits
mailing list