[Mlir-commits] [mlir] [mlir][gpu] Add gpu.ballot operation to GPU dialect (PR #188647)
Mehdi Amini
llvmlistbot at llvm.org
Thu Mar 26 09:21:58 PDT 2026
================
@@ -2619,6 +2619,24 @@ OpFoldResult gpu::SubgroupBroadcastOp::fold(FoldAdaptor /*adaptor*/) {
return nullptr;
}
+//===----------------------------------------------------------------------===//
+// GPU_BallotOp
+//===----------------------------------------------------------------------===//
+
+Speculation::Speculatability gpu::BallotOp::getSpeculatability() {
+ // Ballot depends on active lanes, cannot speculate across control flow.
+ return Speculation::NotSpeculatable;
+}
----------------
joker-eph wrote:
Why mark is conditionally specula table if it isn't?
https://github.com/llvm/llvm-project/pull/188647
More information about the Mlir-commits
mailing list