[all-commits] [llvm/llvm-project] 1f9328: [MLIR][EmitC] arith-to-emitc: Fix lowering of fpto...

Matthias Gehre via All-commits all-commits at lists.llvm.org
Thu Dec 5 05:50:57 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1f932825f9c1a63e1badaae2dbd5305485dfc010
      https://github.com/llvm/llvm-project/commit/1f932825f9c1a63e1badaae2dbd5305485dfc010
  Author: Matthias Gehre <matthias.gehre at amd.com>
  Date:   2024-12-05 (Thu, 05 Dec 2024)

  Changed paths:
    M mlir/lib/Conversion/ArithToEmitC/ArithToEmitC.cpp
    M mlir/test/Conversion/ArithToEmitC/arith-to-emitc.mlir

  Log Message:
  -----------
  [MLIR][EmitC] arith-to-emitc: Fix lowering of fptoui (#118504)

`arith.fptoui %arg0 : f32 to i16` was lowered to
```
%0 = emitc.cast %arg0 : f32 to ui32
emitc.cast %0 : ui32 to i16
```
and is now lowered to
```
%0 = emitc.cast %arg0 : f32 to ui16
emitc.cast %0 : ui16 to i16
```



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list