[Mlir-commits] [mlir] [mlir][LinAlg] Vectorize reverse-like ops using vector.gather ops. (PR #83205)

Diego Caballero llvmlistbot at llvm.org
Tue Feb 27 16:06:55 PST 2024


================
@@ -891,8 +891,7 @@ static bool isContiguousLoadIdx(LinalgOp &linalgOp, Value &val,
 
   // Conservatively reject Ops that could lead to indices with stride other
   // than 1.
-  if (!isa<arith::AddIOp, arith::SubIOp, arith::ConstantOp, linalg::IndexOp>(
-          ancestor))
+  if (!isa<arith::AddIOp, arith::ConstantOp, linalg::IndexOp>(ancestor))
----------------
dcaballe wrote:

Also wondering... shouldn't the condition below be a `&=` instead of an or?

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


More information about the Mlir-commits mailing list