[InstCombine] Canonicalize single element array store
authorDavid Majnemer <david.majnemer@gmail.com>
Mon, 11 May 2015 05:04:27 +0000 (05:04 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Mon, 11 May 2015 05:04:27 +0000 (05:04 +0000)
commitc88eae46da43652874c728fa686cde7a49b49863
tree7328265b0d92d52db91dbee43cefe9baaafb082b
parent3101b1a432521d2d4a47967664bd0376a035c8c9
[InstCombine] Canonicalize single element array store

Use the element type instead of the aggregate type.

Differential Revision: http://reviews.llvm.org/D9591

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@236969 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp
test/Transforms/InstCombine/unpack-fca.ll