[Mlir-commits] [mlir] fb3e4e7 - [mlir] Remove assert from GPUOps.td. (#83410)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Thu Feb 29 03:26:26 PST 2024


Author: Alexander Belyaev
Date: 2024-02-29T12:26:22+01:00
New Revision: fb3e4e78c65ea22b5eda1b4f7e2b5a5e8c6dd5b4

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

LOG: [mlir] Remove assert from GPUOps.td. (#83410)

it changes behaviour for debug vs release builds.

Added: 
    

Modified: 
    mlir/include/mlir/Dialect/GPU/IR/GPUOps.td

Removed: 
    


################################################################################
diff  --git a/mlir/include/mlir/Dialect/GPU/IR/GPUOps.td b/mlir/include/mlir/Dialect/GPU/IR/GPUOps.td
index f38ef4d709ef44..bb373afa40ad99 100644
--- a/mlir/include/mlir/Dialect/GPU/IR/GPUOps.td
+++ b/mlir/include/mlir/Dialect/GPU/IR/GPUOps.td
@@ -61,7 +61,7 @@ class GPU_IndexOp<string mnemonic, list<Trait> traits = []> :
         llvm::function_ref<void(mlir::Value, mlir::StringRef)> setNameFn) {
       auto dimStr = stringifyDimension(getDimensionAttr().getValue());
       auto opName = getOperationName();
-      assert(opName.consume_front("gpu."));
+      opName.consume_front("gpu.");
       SmallString<8> resultName({opName, "_", dimStr});
       setNameFn(getResult(),resultName);
     }


        


More information about the Mlir-commits mailing list