[all-commits] [llvm/llvm-project] 76d1f5: [NVPTX] Support float <-> 2 x half bitcasts

Jakub Chlanda via All-commits all-commits at lists.llvm.org
Mon Apr 25 14:42:15 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 76d1f5eaa87b3d1ae5f4c07114313350152c24f2
      https://github.com/llvm/llvm-project/commit/76d1f5eaa87b3d1ae5f4c07114313350152c24f2
  Author: Jakub Chlanda <j.chlanda at gmail.com>
  Date:   2022-04-25 (Mon, 25 Apr 2022)

  Changed paths:
    M llvm/lib/Target/NVPTX/NVPTXInstrInfo.td
    M llvm/test/CodeGen/NVPTX/f16x2-instructions.ll

  Log Message:
  -----------
  [NVPTX] Support float <-> 2 x half bitcasts

Make sure NVPTX backend can handle bitcasting between `float` and `<2 x half>` types.

This was discovered through: https://github.com/intel/llvm/issues/5969
I'm not suggesting that such bitcasts make much sense, but it feels like the compiler should not hard crash on them.

Reviewed By: tra

Differential Revision: https://reviews.llvm.org/D124171




More information about the All-commits mailing list