OSDN Git Service

fix a bug Anders ran into where scalarrepl would crash when promoting
authorChris Lattner <sabre@nondot.org>
Fri, 29 Feb 2008 07:12:06 +0000 (07:12 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 29 Feb 2008 07:12:06 +0000 (07:12 +0000)
commit9d34c4d678cfc836a59a114b7b2cf91e9dd5eac4
tree5b2bbf20329de2c6103c0a7114e72aebcba8eda8
parent800de31776356910eb877e71df9f32b0a6215324
fix a bug Anders ran into where scalarrepl would crash when promoting
a union containing a vector and an array whose elements were smaller than
the vector elements.  this means we need to compile the load of the
array elements into an extract element plus a truncate.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47752 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/ScalarReplAggregates.cpp
test/Transforms/ScalarRepl/2008-02-28-SubElementExtractCrash.ll [new file with mode: 0644]