[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
Loading
Please sign in to comment