]> granicus.if.org Git - llvm/commit
Update InstCombine to transform aggregate loads into scalar loads.
authorMehdi Amini <mehdi.amini@apple.com>
Thu, 7 May 2015 05:52:40 +0000 (05:52 +0000)
committerMehdi Amini <mehdi.amini@apple.com>
Thu, 7 May 2015 05:52:40 +0000 (05:52 +0000)
commit4d5e059cdb3cdc08d905a6ba0f270fe478a88c02
tree209379a74704099878206ed045da86135bc7aeed
parentcddf82ae35210feffdf5c8f5c57d5e94ff6ade6e
Update InstCombine to transform aggregate loads into scalar loads.

Summary:
One step further getting aggregate loads and store being optimized
properly. This will only handle struct with one element at this point.

Test Plan: Added unit tests for the new supported cases.

Reviewers: chandlerc, joker-eph, joker.eph, majnemer

Reviewed By: majnemer

Subscribers: pete, llvm-commits

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

Patch by Amaury Sechet.

From: Amaury Sechet <amaury@fb.com>

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