[Powerpc] set instruction count as lsr first priority of lsr.
authorZheng Chen <czhengsz@cn.ibm.com>
Fri, 14 Feb 2020 06:42:43 +0000 (01:42 -0500)
committerZheng Chen <czhengsz@cn.ibm.com>
Mon, 17 Feb 2020 02:04:55 +0000 (21:04 -0500)
commit04377a81aee14fc8807aad90b0c1fdfdcb4a3883
tree41b0b458465a43d338a90df9ad52fcd2f9f8a9d0
parentfb44b9db95a333efdfa9a33ddc1778f97428f5f5
[Powerpc] set instruction count as lsr first priority of lsr.

On Powerpc, set instruction count as lsr first priority of lsr by default.
Add an option ppc-lsr-no-insns-cost to return back to default lsr cost model.

Reviewed By: steven.zhang, jsji

Differential Revision: https://reviews.llvm.org/D72683
llvm/lib/Target/PowerPC/PPCTargetTransformInfo.cpp
llvm/lib/Target/PowerPC/PPCTargetTransformInfo.h
llvm/test/CodeGen/PowerPC/addi-licm.ll
llvm/test/CodeGen/PowerPC/lsr-insns-cost.ll
llvm/test/CodeGen/PowerPC/unal-altivec.ll