[Mlir-commits] [mlir] Reland "[mlir][spirv] Fix UpdateVCEPass to deduce the correct set of capabilities" (PR #151502)
Igor Wodiany
llvmlistbot at llvm.org
Thu Jul 31 05:59:45 PDT 2025
================
@@ -95,6 +95,14 @@ static LogicalResult checkAndUpdateCapabilityRequirements(
return success();
}
+static void addAllImpliedCapabilities(SetVector<spirv::Capability> &caps) {
+ for (unsigned i = 0; i < caps.size(); ++i) {
+ spirv::Capability cap = caps[i];
+ ArrayRef<spirv::Capability> impliedCaps = getDirectImpliedCapabilities(cap);
+ caps.insert_range(impliedCaps);
+ }
----------------
IgWod-IMG wrote:
+1 Iterations order was my worry as well and in the hindsight I don't think it's worth the risk. I like the temporary SetVector solution.
https://github.com/llvm/llvm-project/pull/151502
More information about the Mlir-commits
mailing list