[PATCH] D81779: [SelectionDAG] Add MVT::bf16 to getConstantFP()
Aaron Smith via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 16 15:24:27 PDT 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rG7e01675ea50e: [SelectionDAG] Add MVT::bf16 to getConstantFP() (authored by asmith).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D81779/new/
https://reviews.llvm.org/D81779
Files:
llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
Index: llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
===================================================================
--- llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@ -1394,7 +1394,7 @@
else if (EltVT == MVT::f64)
return getConstantFP(APFloat(Val), DL, VT, isTarget);
else if (EltVT == MVT::f80 || EltVT == MVT::f128 || EltVT == MVT::ppcf128 ||
- EltVT == MVT::f16) {
+ EltVT == MVT::f16 || EltVT == MVT::bf16) {
bool Ignored;
APFloat APF = APFloat(Val);
APF.convert(EVTToAPFloatSemantics(EltVT), APFloat::rmNearestTiesToEven,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D81779.271227.patch
Type: text/x-patch
Size: 633 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200616/43caa17c/attachment.bin>
More information about the llvm-commits
mailing list