[clang] [llvm] [RFC][WIP][AMDGPU] Use `bf16` instead of `i16` for bfloat (PR #80908)
Matt Arsenault via cfe-commits
cfe-commits at lists.llvm.org
Thu Feb 8 01:19:29 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:
Unrelated, but this also misses hidden casts implied by the ABI
https://github.com/llvm/llvm-project/pull/80908
More information about the cfe-commits
mailing list