[llvm] r222254 - Fix an incorrect chain operand when expanding INSERT_VECTOR operations through the stack.

Owen Anderson resistor at mac.com
Tue Nov 18 12:50:19 PST 2014


Author: resistor
Date: Tue Nov 18 14:50:19 2014
New Revision: 222254

URL: http://llvm.org/viewvc/llvm-project?rev=222254&view=rev
Log:
Fix an incorrect chain operand when expanding INSERT_VECTOR operations through the stack.

Patch by Daniil Troshkov!

Modified:
    llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp

Modified: llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp?rev=222254&r1=222253&r2=222254&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp Tue Nov 18 14:50:19 2014
@@ -1486,7 +1486,7 @@ SDValue SelectionDAGLegalize::ExpandInse
                                     StackPtr);
 
   // Store the subvector.
-  Ch = DAG.getStore(DAG.getEntryNode(), dl, Part, SubStackPtr,
+  Ch = DAG.getStore(Ch, dl, Part, SubStackPtr,
                     MachinePointerInfo(), false, false, 0);
 
   // Finally, load the updated vector.





More information about the llvm-commits mailing list