[all-commits] [llvm/llvm-project] 38f34e: [mlir][Arith] Fix folder of CmpIOp to not fail whe...
MaheshRavishankar via All-commits
all-commits at lists.llvm.org
Thu Nov 3 13:39:49 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 38f34e587d10fcd7d18fd240e41248006faa639e
https://github.com/llvm/llvm-project/commit/38f34e587d10fcd7d18fd240e41248006faa639e
Author: Mahesh Ravishankar <ravishankarm at google.com>
Date: 2022-11-03 (Thu, 03 Nov 2022)
Changed paths:
M mlir/lib/Dialect/Arith/IR/ArithOps.cpp
M mlir/test/Dialect/Arith/canonicalize.mlir
Log Message:
-----------
[mlir][Arith] Fix folder of CmpIOp to not fail when element type is not integer.
The folder used `cast<IntegerType>` which would segfault if the type were
a vector type. Handle this case appropriately and avoid failure.
Reviewed By: hanchung
Differential Revision: https://reviews.llvm.org/D137345
More information about the All-commits
mailing list