[clang] [llvm] [RFC][WIP][AMDGPU] Use `bf16` instead of `i16` for bfloat (PR #80908)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 8 01:23:19 PST 2024


================
@@ -1562,8 +1562,9 @@ bool IRTranslator::translateBitCast(const User &U,
 
 bool IRTranslator::translateCast(unsigned Opcode, const User &U,
                                  MachineIRBuilder &MIRBuilder) {
-  if (U.getType()->getScalarType()->isBFloatTy() ||
-      U.getOperand(0)->getType()->getScalarType()->isBFloatTy())
+  if (Opcode != TargetOpcode::G_BITCAST &&
----------------
arsenm wrote:

This change should be done separately 

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


More information about the llvm-commits mailing list