Allow physregs to occur in the dag with multiple types. Though I don't like
authorChris Lattner <sabre@nondot.org>
Tue, 30 Aug 2005 22:38:05 +0000 (22:38 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 30 Aug 2005 22:38:05 +0000 (22:38 +0000)
this, it is a requirement on PPC, which can have an f32 value in r3 at one
point in a function and a f64 value in r3 at another point.  :(

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23160 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/SelectionDAG.h

index 8008a4b59a11d04cc5c637c988a2504a2d46ba2e..ed27fb11054f3c1c33f2f2308fdbfac20d76ca7c 100644 (file)
@@ -355,7 +355,7 @@ private:
   std::map<std::pair<unsigned, std::pair<SDOperand, SDOperand> >,
            SDNode *> BinaryOps;
 
-  std::vector<RegisterSDNode*> RegNodes;
+  std::map<std::pair<unsigned, MVT::ValueType>, RegisterSDNode*> RegNodes;
   std::vector<CondCodeSDNode*> CondCodeNodes;
 
   std::map<std::pair<SDOperand, std::pair<SDOperand, MVT::ValueType> >,