[llvm] 4d1cd38 - DAG: Handle promotion of fcanonicalize
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 21 21:50:25 PST 2023
Author: Matt Arsenault
Date: 2023-12-22T12:50:18+07:00
New Revision: 4d1cd38c95d317f1b6b331ea811f7de8592b4ed6
URL: https://github.com/llvm/llvm-project/commit/4d1cd38c95d317f1b6b331ea811f7de8592b4ed6
DIFF: https://github.com/llvm/llvm-project/commit/4d1cd38c95d317f1b6b331ea811f7de8592b4ed6.diff
LOG: DAG: Handle promotion of fcanonicalize
This avoids a regression in a future commit
Added:
Modified:
llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
index 0917d0e4eb3e26..a483b8028fda9e 100644
--- a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
@@ -5352,6 +5352,7 @@ void SelectionDAGLegalize::PromoteNode(SDNode *Node) {
case ISD::FEXP:
case ISD::FEXP2:
case ISD::FEXP10:
+ case ISD::FCANONICALIZE:
Tmp1 = DAG.getNode(ISD::FP_EXTEND, dl, NVT, Node->getOperand(0));
Tmp2 = DAG.getNode(Node->getOpcode(), dl, NVT, Tmp1);
Results.push_back(
More information about the llvm-commits
mailing list