]> granicus.if.org Git - llvm/commit
[CodeGenPrep]Restructure promoting Ext to form ExtLoad
authorJun Bum Lim <junbuml@codeaurora.org>
Fri, 17 Mar 2017 19:05:21 +0000 (19:05 +0000)
committerJun Bum Lim <junbuml@codeaurora.org>
Fri, 17 Mar 2017 19:05:21 +0000 (19:05 +0000)
commit40a6d15e7a3aa5dfcd8a8382e62cbc43d26abc31
tree9813c8ef7bc0ee5bd6dab3791c7a5397a547e007
parent5edba1dc35ea5bdafbe9bb741f74966b4b656a2d
[CodeGenPrep]Restructure promoting Ext to form ExtLoad

Summary:
Instead of just looking for a load which is mergable with Ext to form ExtLoad, trying to promote Exts as long as the cost is acceptable. This change is not a NFC as it continue promoting Exts even after finding a load during promotions; the change in arm64-codegen-prepare-extload.ll described in 2.b might show the case.
This change was motivated from D26524.  Based on this change, I will move the transformation performed in aarch64-type-promotion into CGP.

Reviewers: jmolloy, qcolombet, mcrosier, javed.absar

Reviewed By: qcolombet

Subscribers: rengolin, llvm-commits, aemerson

Differential Revision: https://reviews.llvm.org/D27853

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@298114 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CodeGenPrepare.cpp
test/CodeGen/AArch64/arm64-codegen-prepare-extload.ll
test/CodeGen/X86/codegen-prepare-extload.ll