]> granicus.if.org Git - llvm/commit
[CodeGenPrep] move aarch64-type-promotion to CGP
authorJun Bum Lim <junbuml@codeaurora.org>
Mon, 3 Apr 2017 19:20:07 +0000 (19:20 +0000)
committerJun Bum Lim <junbuml@codeaurora.org>
Mon, 3 Apr 2017 19:20:07 +0000 (19:20 +0000)
commit78c95b332bd0ba1e43d5e973e41c5299e7424791
tree285311a3ce529c52e7ae17da775051f3d4f01ee0
parent445d3cfd6bf51ec2a7d4934d01e56f55edcc5f13
[CodeGenPrep] move aarch64-type-promotion to CGP

Summary:
Move the aarch64-type-promotion pass within the existing type promotion framework in CGP.
This change also support forking sexts when a new sext is required for promotion.
Note that change is based on D27853 and I am submitting this out early to provide a better idea on D27853.

Reviewers: jmolloy, mcrosier, javed.absar, qcolombet

Reviewed By: qcolombet

Subscribers: llvm-commits, aemerson, rengolin, mcrosier

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@299379 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/TargetTransformInfo.h
include/llvm/Analysis/TargetTransformInfoImpl.h
lib/Analysis/TargetTransformInfo.cpp
lib/CodeGen/CodeGenPrepare.cpp
lib/Target/AArch64/AArch64TargetMachine.cpp
lib/Target/AArch64/AArch64TargetTransformInfo.cpp
lib/Target/AArch64/AArch64TargetTransformInfo.h
test/CodeGen/AArch64/aarch64-codegen-prepare-atp.ll [new file with mode: 0644]
test/CodeGen/AArch64/arm64-addr-type-promotion.ll