[llvm] [LLVM][NVPTX]Add BF16 vector instruction and fix lowering rules (PR #69415)

Han Shen via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 20 00:32:11 PDT 2023


================
@@ -1623,8 +1623,10 @@ SDValue SelectionDAGLegalize::ExpandFCOPYSIGN(SDNode *Node) const {
                                 SignMask);
 
   // If FABS is legal transform FCOPYSIGN(x, y) => sign(x) ? -FABS(x) : FABS(X)
+  // We don't do it in bf16 since the other path has less number of instructions
----------------
shenh10 wrote:

At least for bf16 the first bit should be sign bit. It should be safe to do bit operation here.

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


More information about the llvm-commits mailing list