Extending to f32 first (as is done for f16) results in better generated code for RISC-V (and affects no other in-tree tests). Additionally, performing the FP_EXTEND first seems equally justified for bf16 and for f16.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
asb added a parent revision: D156943: [RISCV] Implement straight-forward bf16<->int conversion cases.Aug 2 2023, 2:19 PM
asb retitled this revision from [TargetLowering][RISCV] Improve codegen for saturing bf16 to int conversion to [TargetLowering][RISCV] Improve codegen for saturating bf16 to int conversion.Aug 2 2023, 2:25 PM
This revision is now accepted and ready to land.Aug 4 2023, 10:10 PM
This revision was landed with ongoing or failed builds.Aug 7 2023, 3:22 AM
Closed by commit rG1cffd2648320: [TargetLowering][RISCV] Improve codegen for saturating bf16 to int conversion (authored by asb). · Explain Why
This revision was automatically updated to reflect the committed changes.