[Mlir-commits] [mlir] [mlir][vector] Implement speculation for vector.transferx ops (PR #111533)

Jakub Kuderski llvmlistbot at llvm.org
Tue Oct 8 08:01:23 PDT 2024


================
@@ -4245,6 +4245,12 @@ void TransferReadOp::getEffects(
                          SideEffects::DefaultResource::get());
 }
 
+Speculation::Speculatability TransferReadOp::getSpeculatability() {
+  if (!hasPureTensorSemantics())
+    return Speculation::NotSpeculatable;
+  return Speculation::Speculatable;
----------------
kuhar wrote:

nit: invert this to get rid of negation?

https://github.com/llvm/llvm-project/pull/111533


More information about the Mlir-commits mailing list