[clang] [clang] fix half && bfloat16 convert node expr codegen (PR #89051)
Matt Arsenault via cfe-commits
cfe-commits at lists.llvm.org
Fri Apr 26 05:03:27 PDT 2024
================
@@ -1906,7 +1909,15 @@ Value *ScalarExprEmitter::VisitConvertVectorExpr(ConvertVectorExpr *E) {
} else {
assert(SrcEltTy->isFloatingPointTy() && DstEltTy->isFloatingPointTy() &&
"Unknown real conversion");
- if (DstEltTy->getTypeID() < SrcEltTy->getTypeID())
+ if ((DstEltTy->is16bitFPTy() && SrcEltTy->is16bitFPTy())) {
----------------
arsenm wrote:
This should be a separate change if it's correct
https://github.com/llvm/llvm-project/pull/89051
More information about the cfe-commits
mailing list