llvm patch

Jan Hranac hranac at codasip.com
Thu Jul 23 22:51:41 PDT 2015


The attached patch fixes loss of chaining in ExpandUnalignedLoad for 
legal (but unaligned) vectors and floats. The function was returning an 
input chain, not an output one in that case.
-------------- next part --------------
Index: lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
===================================================================
--- lib/CodeGen/SelectionDAG/LegalizeDAG.cpp	(revision 243092)
+++ lib/CodeGen/SelectionDAG/LegalizeDAG.cpp	(working copy)
@@ -439,7 +439,7 @@
                              ISD::ANY_EXTEND, dl, VT, Result);
 
       ValResult = Result;
-      ChainResult = Chain;
+      ChainResult = newLoad.getValue(1);
       return;
     }
 


More information about the llvm-commits mailing list