]> granicus.if.org Git - llvm/commit
[PowerPC] Use xxleqv to set all one vector IMM(-1).
authorJinsong Ji <jji@us.ibm.com>
Thu, 15 Aug 2019 14:32:51 +0000 (14:32 +0000)
committerJinsong Ji <jji@us.ibm.com>
Thu, 15 Aug 2019 14:32:51 +0000 (14:32 +0000)
commit87d746a64d255c929045746fc9f16dc9ee91a443
tree3b328ea8f20045c4b3ff8060a5bd98113a70d80f
parent62924c562dd3b3a744cc20e8d333cc942078fd3d
[PowerPC] Use xxleqv to set all one vector IMM(-1).

Summary:
xxspltib/vspltisb are 3 cycle PM instructions,
xxleqv is 2 cycle ALU instruction.

We should use xxleqv to set all one vectors.

Reviewers: hfinkel, nemanjai, steven.zhang

Subscribers: hiraditya, kbarton, MaskRay, shchenz, llvm-commits

Tags: #llvm

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@369006 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/P9InstrResources.td
lib/Target/PowerPC/PPCInstrInfo.cpp
lib/Target/PowerPC/PPCInstrInfo.td
lib/Target/PowerPC/PPCInstrVSX.td
test/CodeGen/PowerPC/build-vector-allones.ll
test/CodeGen/PowerPC/power9-moves-and-splats.ll
test/CodeGen/PowerPC/sat-add.ll
test/CodeGen/PowerPC/setcc-logic.ll
test/CodeGen/PowerPC/signbit-shift.ll
test/CodeGen/PowerPC/vec_add_sub_doubleword.ll
test/CodeGen/PowerPC/vselect-constants.ll