Now that Evan Cheng has fixed the coalescer bug (r100804), the workaround code
authorJohnny Chen <johnny.chen@apple.com>
Thu, 8 Apr 2010 21:23:54 +0000 (21:23 +0000)
committerJohnny Chen <johnny.chen@apple.com>
Thu, 8 Apr 2010 21:23:54 +0000 (21:23 +0000)
to avoid memcpy() call is no longer necessary.

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

utils/TableGen/ARMDecoderEmitter.cpp

index 29e9b8ad8c21478f6e603072f86c975d163e96b8..55ea25b2104cec4f41b097eaba8d18d88dfb94d3 100644 (file)
@@ -596,11 +596,7 @@ void Filter::recurse() {
 
   bit_value_t BitValueArray[BIT_WIDTH];
   // Starts by inheriting our parent filter chooser's filter bit values.
-  bit_value_t *BitVals = Owner->FilterBitValues;
-  for (unsigned i = 0; i < BIT_WIDTH; ++i)
-    BitValueArray[i] = BitVals[i];
-  // FIXME: memcpy() is misoptimized with self-hosting llvm-gcc (-O1 and -O2).
-  //memcpy(BitValueArray, Owner->FilterBitValues, sizeof(BitValueArray));
+  memcpy(BitValueArray, Owner->FilterBitValues, sizeof(BitValueArray));
 
   unsigned bitIndex;