[llvm-commits] [llvm] r86340 - /llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
Mon P Wang
wangmp at apple.com
Fri Nov 6 20:46:28 PST 2009
Author: wangmp
Date: Fri Nov 6 22:46:25 2009
New Revision: 86340
URL: http://llvm.org/viewvc/llvm-project?rev=86340&view=rev
Log:
Fix memoizing of CvtRndSatSDNode
Modified:
llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp?rev=86340&r1=86339&r2=86340&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp Fri Nov 6 22:46:25 2009
@@ -1270,11 +1270,12 @@
return Val;
FoldingSetNodeID ID;
+ SDValue Ops[] = { Val, DTy, STy, Rnd, Sat };
+ AddNodeIDNode(ID, ISD::CONVERT_RNDSAT, getVTList(VT), &Ops[0], 5);
void* IP = 0;
if (SDNode *E = CSEMap.FindNodeOrInsertPos(ID, IP))
return SDValue(E, 0);
CvtRndSatSDNode *N = NodeAllocator.Allocate<CvtRndSatSDNode>();
- SDValue Ops[] = { Val, DTy, STy, Rnd, Sat };
new (N) CvtRndSatSDNode(VT, dl, Ops, 5, Code);
CSEMap.InsertNode(N, IP);
AllNodes.push_back(N);
More information about the llvm-commits
mailing list