This is an archive of the discontinued LLVM Phabricator instance.

[mlir][spirv] Fix result type for arith.cmpi/cmpf conversion
ClosedPublic

Authored by antiagainst on Jun 11 2022, 8:49 AM.

Details

Summary

We cannot directly use the original result type; instead we need
to deduce it from the converted operand type. This addresses
invalid ops generated from converting single element vectors.

Depends on D127573

Diff Detail

Event Timeline

antiagainst created this revision.Jun 11 2022, 8:49 AM
antiagainst requested review of this revision.Jun 11 2022, 8:49 AM
ThomasRaoux accepted this revision.Jun 13 2022, 9:52 AM
This revision is now accepted and ready to land.Jun 13 2022, 9:52 AM
This revision was landed with ongoing or failed builds.Jun 13 2022, 10:16 AM
This revision was automatically updated to reflect the committed changes.