[InstCombine] Canonicalize single element array load
authorDavid Majnemer <david.majnemer@gmail.com>
Mon, 11 May 2015 05:04:22 +0000 (05:04 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Mon, 11 May 2015 05:04:22 +0000 (05:04 +0000)
commit3101b1a432521d2d4a47967664bd0376a035c8c9
tree52877f7b91423bbdc65fb457f14eee89dba69b91
parentc7c44fa75eb63aab59fcd0a1dfd6522e21babf22
[InstCombine] Canonicalize single element array load

Use the element type instead of the aggregate type.

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

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