[Mlir-commits] [mlir] 6f79240 - [mlir][spirv] Mark SPV_UndefOp NoSideEffect

Ivan Butygin llvmlistbot at llvm.org
Tue Mar 29 07:55:33 PDT 2022


Author: Ivan Butygin
Date: 2022-03-29T17:54:32+03:00
New Revision: 6f792404303a7c5e3efab0bef3c28966d410edf5

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

LOG: [mlir][spirv] Mark SPV_UndefOp NoSideEffect

Differential Revision: https://reviews.llvm.org/D122561

Added: 
    

Modified: 
    mlir/include/mlir/Dialect/SPIRV/IR/SPIRVMiscOps.td

Removed: 
    


################################################################################
diff  --git a/mlir/include/mlir/Dialect/SPIRV/IR/SPIRVMiscOps.td b/mlir/include/mlir/Dialect/SPIRV/IR/SPIRVMiscOps.td
index 956d39a16d645..62077f5055cc4 100644
--- a/mlir/include/mlir/Dialect/SPIRV/IR/SPIRVMiscOps.td
+++ b/mlir/include/mlir/Dialect/SPIRV/IR/SPIRVMiscOps.td
@@ -56,7 +56,7 @@ def SPV_AssumeTrueKHROp : SPV_Op<"AssumeTrueKHR", []> {
 
 // -----
 
-def SPV_UndefOp : SPV_Op<"Undef", []> {
+def SPV_UndefOp : SPV_Op<"Undef", [NoSideEffect]> {
   let summary = "Make an intermediate object whose value is undefined.";
 
   let description = [{


        


More information about the Mlir-commits mailing list