Advertising
- Untitled
- Thursday, May 3rd, 2012 at 7:25:28am MDT
- Index: lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
- ===================================================================
- --- lib/CodeGen/SelectionDAG/LegalizeDAG.cpp (revision 156062)
- +++ lib/CodeGen/SelectionDAG/LegalizeDAG.cpp (working copy)
- @@ -1419,12 +1419,17 @@
- // Emit a store of each element to the stack slot.
- SmallVector<SDValue, 8> Stores;
- - unsigned TypeByteSize = EltVT.getSizeInBits() / 8;
- // Store (in the right endianness) the elements to memory.
- for (unsigned i = 0, e = Node->getNumOperands(); i != e; ++i) {
- // Ignore undef elements.
- if (Node->getOperand(i).getOpcode() == ISD::UNDEF) continue;
- + // Store offset size is from operands value size,
- + // not output element size.
- + // Operands may be vectors, if this comes from
- + // expand of CONCAT_VECTORS
- + EVT inputVT = Node->getOperand(i).getValueType();
- + unsigned TypeByteSize = inputVT.getSizeInBits() / 8;
- unsigned Offset = TypeByteSize*i;
- SDValue Idx = DAG.getConstant(Offset, FIPtr.getValueType());
advertising
Update the Post
Either update this post and resubmit it with changes, or make a new post.
You may also comment on this post.
Please note that information posted here will expire by default in one month. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.