This is an archive of the discontinued LLVM Phabricator instance.

[mlir][Arith] Fix folder of CmpIOp to not fail when element type is not integer.
ClosedPublic

Authored by mravishankar on Nov 3 2022, 10:59 AM.

Details

Summary

The folder used cast<IntegerType> which would segfault if the type were
a vector type. Handle this case appropriately and avoid failure.

Diff Detail

Event Timeline

mravishankar created this revision.Nov 3 2022, 10:59 AM
mravishankar requested review of this revision.Nov 3 2022, 10:59 AM
hanchung accepted this revision.Nov 3 2022, 11:03 AM
hanchung added inline comments.
mlir/test/Dialect/Arith/canonicalize.mlir
1683–1684

delete?

This revision is now accepted and ready to land.Nov 3 2022, 11:03 AM