================
@@ -4482,6 +4466,12 @@ static Constant *ConstantFoldFixedVectorCall(
return ConstantVector::get(Result);
}
+ case Intrinsic::nvvm_fadd:
+ case Intrinsic::nvvm_fadd_ftz:
+ // The rounding mode operand is a scalar, so the lane-wise folding below
+ // does not apply.
+ // TODO: Fold these by passing the rounding mode through to every lane.
----------------
Wolfram70 wrote:
Yes, none of the vector types have had support for constant folding. I plan to
add it for the supported vector types (`v2f16`, `v2bf16`, and `v2f32`) in a
follow-up patch.
https://github.com/llvm/llvm-project/pull/217336
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits