[llvm] AMDGPU: Make bf16/v2bf16 legal types (PR #76215)
Pierre van Houtryve via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 2 01:52:04 PST 2024
================
@@ -3901,6 +3958,26 @@ SDValue SITargetLowering::lowerPREFETCH(SDValue Op, SelectionDAG &DAG) const {
return Op;
}
+// Work around DAG legality rules only based on the result type.
+SDValue SITargetLowering::lowerFP_EXTEND(SDValue Op, SelectionDAG &DAG) const {
+ bool IsStrict = Op.getOpcode() == ISD::STRICT_FP_EXTEND;
----------------
Pierre-vh wrote:
tiny tiny nit: put parentheses around the initializer - `=` and `==` on each side of an expression is just a bit confusing at first glance
https://github.com/llvm/llvm-project/pull/76215
More information about the llvm-commits
mailing list