[Mlir-commits] [mlir] Introduce new Unroll And Jam loop transform for SCF/Affine loops (PR #94142)
    Oleksandr Alex Zinenko 
    llvmlistbot at llvm.org
       
    Fri Jun 14 08:41:14 PDT 2024
    
    
  
================
@@ -375,22 +399,21 @@ LogicalResult mlir::loopUnrollByFactor(
   std::optional<int64_t> lbCstOp = getConstantIntValue(forOp.getLowerBound());
   std::optional<int64_t> ubCstOp = getConstantIntValue(forOp.getUpperBound());
   std::optional<int64_t> stepCstOp = getConstantIntValue(forOp.getStep());
-  if (lbCstOp && ubCstOp && stepCstOp) {
+  auto constTripCount = getConstantTripCount(forOp);
----------------
ftynse wrote:
Please expand auto.
https://github.com/llvm/llvm-project/pull/94142
    
    
More information about the Mlir-commits
mailing list