[Mlir-commits] [mlir] 92f26d4 - Apply clang-tidy fixes for readability-identifier-naming in TosaToLinalg.cpp (NFC)

Mehdi Amini llvmlistbot at llvm.org
Sun Oct 9 18:09:01 PDT 2022


Author: Mehdi Amini
Date: 2022-10-10T01:08:27Z
New Revision: 92f26d4abc546645cb785e4fbdb473b92d914867

URL: https://github.com/llvm/llvm-project/commit/92f26d4abc546645cb785e4fbdb473b92d914867
DIFF: https://github.com/llvm/llvm-project/commit/92f26d4abc546645cb785e4fbdb473b92d914867.diff

LOG: Apply clang-tidy fixes for readability-identifier-naming in TosaToLinalg.cpp (NFC)

Added: 
    

Modified: 
    mlir/lib/Conversion/TosaToLinalg/TosaToLinalg.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Conversion/TosaToLinalg/TosaToLinalg.cpp b/mlir/lib/Conversion/TosaToLinalg/TosaToLinalg.cpp
index b837cb1d80289..7aae079410989 100644
--- a/mlir/lib/Conversion/TosaToLinalg/TosaToLinalg.cpp
+++ b/mlir/lib/Conversion/TosaToLinalg/TosaToLinalg.cpp
@@ -1451,11 +1451,11 @@ class ResizeConverter : public OpRewritePattern<tosa::ResizeOp> {
       iy = rewriter.create<arith::DivUIOp>(loc, y, yScaleN);
       ix = rewriter.create<arith::DivUIOp>(loc, x, xScaleN);
 
-      Value temp_y = rewriter.create<arith::MulIOp>(loc, iy, yScaleN);
-      Value temp_x = rewriter.create<arith::MulIOp>(loc, ix, xScaleN);
+      Value tempY = rewriter.create<arith::MulIOp>(loc, iy, yScaleN);
+      Value tempX = rewriter.create<arith::MulIOp>(loc, ix, xScaleN);
 
-      dy = rewriter.create<arith::SubIOp>(loc, y, temp_y);
-      dx = rewriter.create<arith::SubIOp>(loc, x, temp_x);
+      dy = rewriter.create<arith::SubIOp>(loc, y, tempY);
+      dx = rewriter.create<arith::SubIOp>(loc, x, tempX);
     }
 
     if (op.getMode() == "NEAREST_NEIGHBOR") {


        


More information about the Mlir-commits mailing list