[Mlir-commits] [mlir] [mlir][nvvm] Expand sitofp/uitofp to faster ops (PR #107001)

Justin Fargnoli llvmlistbot at llvm.org
Wed Sep 4 13:28:33 PDT 2024


justinfargnoli wrote:

> I meant adding something to the "codegen prepare" phase before the backend (LLVM IR -> LLVM IR transformation).

Yes, it is possible to do this transformation at the LLVM IR level. 

It should also be possible to do this in `SelectionDAG` before type legalization occurs and promotes `i8` to `i16`. 

However, I would lean towards doing this at the LLVM IR level as a "codegen prepare" because there is more infrastructure to verify the correctness of LLVM IR level transformation. 

https://github.com/llvm/llvm-project/pull/107001


More information about the Mlir-commits mailing list