Fix big-endian codegen bug. We're splitting up
authorDale Johannesen <dalej@apple.com>
Wed, 25 Feb 2009 22:39:13 +0000 (22:39 +0000)
committerDale Johannesen <dalej@apple.com>
Wed, 25 Feb 2009 22:39:13 +0000 (22:39 +0000)
commit8a36f509cd0fd4c503c8564000f77713e1676c56
tree3d0ef1d003ac7702dffa3b6f28e96077e359c976
parent053372dc3c25c5442b7349c612104e15c41233e8
Fix big-endian codegen bug.  We're splitting up
overly long ints, e.g. i96, into pieces at PHIs
and the nodes that feed into them; however big-endian
reverses the order of the pieces (for some reason), and
wasn't doing it the same way on both sides, so
the pieces didn't match and runtime failures ensued.
Fixes 188.ammp and sqlite3 on ppc32.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65481 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp