[Mlir-commits] [mlir] 43beaee - Revert "antiagainst's fix"

Diego Caballero llvmlistbot at llvm.org
Mon Aug 15 11:27:55 PDT 2022


Author: Diego Caballero
Date: 2022-08-15T18:27:35Z
New Revision: 43beaeed38e0440b89af0ca5f76923fb68f22b99

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

LOG: Revert "antiagainst's fix"

This reverts commit 42d48d09666279bdd05d70ff7c353466ae79711a.

Added: 
    

Modified: 
    mlir/include/mlir/IR/OpBase.td

Removed: 
    


################################################################################
diff  --git a/mlir/include/mlir/IR/OpBase.td b/mlir/include/mlir/IR/OpBase.td
index 7a4606da93bbc..9e2b7ab062643 100644
--- a/mlir/include/mlir/IR/OpBase.td
+++ b/mlir/include/mlir/IR/OpBase.td
@@ -2288,11 +2288,7 @@ class ElementCount<string name> :
 class ElementType<string name> : StrFunc<"getElementTypeOrSelf($" # name # ")">;
 
 class AllMatchPred<list<string> values> :
-  CPred<!if(!lt(!size(values), 2),
-            "true",
-            !foldl("(" # !head(values) # ")", !tail(values), acc, v,
-                   acc # " == (" # v # ") && (" # v # ")")
-              # " == (" # !head(values) # ")")>;
+    CPred<"::llvm::is_splat({" # !interleave(values, ", ") # "})">;
 
 class AllMatch<list<string> values, string summary> :
     PredOpTrait<summary, AllMatchPred<values>>;


        


More information about the Mlir-commits mailing list