Now that Evan Cheng has fixed the coalescer bug (r100804), the workaround code

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
This commit is contained in:
Johnny Chen 2010-04-08 21:23:54 +00:00
parent 22772214de
commit 2d16a67b94

View 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;