[Mlir-commits] [mlir] [mlir][SCF] Use Affine ops for indexing math.	(PR #108450)
    Han-Chung Wang 
    llvmlistbot at llvm.org
       
    Tue Sep 17 04:47:31 PDT 2024
    
    
  
================
@@ -774,6 +840,16 @@ static Value getProductOfIntsOrIndexes(RewriterBase &rewriter, Location loc,
 static std::pair<SmallVector<Value>, SmallPtrSet<Operation *, 2>>
 delinearizeInductionVariable(RewriterBase &rewriter, Location loc,
                              Value linearizedIv, ArrayRef<Value> ubs) {
+
+  if (linearizedIv.getType() == rewriter.getIndexType()) {
----------------
hanhanW wrote:
ditto: can we use `isIndex()`?
https://github.com/llvm/llvm-project/pull/108450
    
    
More information about the Mlir-commits
mailing list