Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate
Sign In | Create Account

Advertising

Untitled
Thursday, May 3rd, 2012 at 7:25:28am MDT 

  1. Index: lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
  2. ===================================================================
  3. --- lib/CodeGen/SelectionDAG/LegalizeDAG.cpp    (revision 156062)
  4. +++ lib/CodeGen/SelectionDAG/LegalizeDAG.cpp    (working copy)
  5. @@ -1419,12 +1419,17 @@
  6.  
  7.    // Emit a store of each element to the stack slot.
  8.    SmallVector<SDValue, 8> Stores;
  9. -  unsigned TypeByteSize = EltVT.getSizeInBits() / 8;
  10.    // Store (in the right endianness) the elements to memory.
  11.    for (unsigned i = 0, e = Node->getNumOperands(); i != e; ++i) {
  12.      // Ignore undef elements.
  13.      if (Node->getOperand(i).getOpcode() == ISD::UNDEF) continue;
  14.  
  15. +    // Store offset size is from operands value size,
  16. +    // not output element size.
  17. +    // Operands may be vectors, if this comes from
  18. +    // expand of CONCAT_VECTORS
  19. +    EVT inputVT = Node->getOperand(i).getValueType();
  20. +    unsigned TypeByteSize = inputVT.getSizeInBits() / 8;
  21.      unsigned Offset = TypeByteSize*i;
  22.  
  23.      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.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



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.

worth-right
fantasy-obligation
fantasy-obligation