Part of the arith update broke UiToFp32. Fixed the lowering and included a new
test to detect a regression.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
mlir/lib/Conversion/TosaToLinalg/TosaToLinalg.cpp | ||
---|---|---|
575 | I wonder if for the future it would be better to do this with the type conversion part of the dialect conversion framework. Also man this is a huge function... |
mlir/lib/Conversion/TosaToLinalg/TosaToLinalg.cpp | ||
---|---|---|
575 | In this case I am not certain the type conversion part would help that much. We actually need the signedness preserved after this executes and arguably other compilers may want to preserve it for their version. It would not be as bad if SIToFP and UIToFP operating signed/unsigned integers (not just signless). But yeah, the function is a bit huge but it represents around 1/2 of all TOSA lowerings (all elementwise operations). |
I wonder if for the future it would be better to do this with the type conversion part of the dialect conversion framework. Also man this is a huge function...