Reduce the size of the ExprMapKeyType class.
authorReid Spencer <rspencer@reidspencer.com>
Mon, 4 Dec 2006 18:38:05 +0000 (18:38 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Mon, 4 Dec 2006 18:38:05 +0000 (18:38 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32186 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/Constants.cpp

index 4d833caf5e3b08c1a682e8f0dce54b7bced65046..17a5eaeabf3f832999b3f7b5fd236d2e15e9c4ba 100644 (file)
@@ -1359,10 +1359,10 @@ void UndefValue::destroyConstant() {
 //
 struct ExprMapKeyType {
   explicit ExprMapKeyType(unsigned opc, std::vector<Constant*> ops,
-      unsigned short pred = 0) : opcode(opc), operands(ops), predicate(pred) { }
-  unsigned opcode;
+      unsigned short pred = 0) : opcode(opc), predicate(pred), operands(ops) { }
+  uint16_t opcode;
+  uint16_t predicate;
   std::vector<Constant*> operands;
-  unsigned short predicate;
   bool operator==(const ExprMapKeyType& that) const {
     return this->opcode == that.opcode &&
            this->predicate == that.predicate &&