Redo store splitting in CodeGenPrepare.
authorWei Mi <wmi@google.com>
Thu, 22 Dec 2016 19:44:45 +0000 (19:44 +0000)
committerWei Mi <wmi@google.com>
Thu, 22 Dec 2016 19:44:45 +0000 (19:44 +0000)
commita2f0b594c26b233044006264faec2657f1756963
treec5d54b1fa3875d5a400d47b4546169163aef1dfe
parent5e87c3465ec262cab99f1f832e0be1d0076c201c
Redo store splitting in CodeGenPrepare.

This is a succeeding patch of https://reviews.llvm.org/D22840 to address the
issue when a value to be merged into an int64 pair is in a different BB. Redoing
the store splitting in CodeGenPrepare so we can match the pattern across multiple
BBs and move some instructions into the same BB. We still keep the code in dag
combine so that we can catch cases that show up after DAG combining runs.

Differential Revision: https://reviews.llvm.org/D25914

llvm-svn: 290365
llvm/lib/CodeGen/CodeGenPrepare.cpp
llvm/test/CodeGen/X86/split-store.ll