]> granicus.if.org Git - llvm/commit
[CodeGenPrep]No negative cost in the ExtLd promotion
authorJun Bum Lim <junbuml@codeaurora.org>
Fri, 27 Jan 2017 17:16:37 +0000 (17:16 +0000)
committerJun Bum Lim <junbuml@codeaurora.org>
Fri, 27 Jan 2017 17:16:37 +0000 (17:16 +0000)
commitc96f661d59cd81eec5e23b72db5a695765176f20
tree6173d57be82bbd9a43f15fa56d22c410fc6fcad8
parent1f3b497b086bd67ba3349c6badeddc9540519640
[CodeGenPrep]No negative cost in the ExtLd promotion

Summary: This change prevent the signed value of cost from being negative as the value is passed as an unsigned argument.

Reviewers: mcrosier, jmolloy, qcolombet, javed.absar

Reviewed By: mcrosier, qcolombet

Subscribers: llvm-commits

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

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