[clang] [HLSL] Add matrix support for isnan() and isinf() (PR #195586)
Dan Brown via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 28 23:14:49 PDT 2026
================
@@ -2242,15 +2241,14 @@ Value *ScalarExprEmitter::VisitMatrixSingleSubscriptExpr(
MB.CreateIndexAssumption(RowIdx, NumRows);
Value *FlatMatrix = Visit(E->getBase());
- llvm::Type *ElemTy = CGF.ConvertTypeForMem(MatrixTy->getElementType());
+ llvm::Type *ElemTy = CGF.ConvertType(MatrixTy->getElementType());
----------------
danbrown-amd wrote:
Reverted. That was Claude's idea for getting around a SPIR-V legalization error that still pops up for the offload tests; I should have been more skeptical there.
https://github.com/llvm/llvm-project/pull/195586
More information about the cfe-commits
mailing list