OSDN Git Service

[PowerPC][NFC] Add tests for some missed optimization opportunities in combineSetCC
authorLi Jia He <hljhehlj@cn.ibm.com>
Fri, 26 Oct 2018 05:02:10 +0000 (05:02 +0000)
committerLi Jia He <hljhehlj@cn.ibm.com>
Fri, 26 Oct 2018 05:02:10 +0000 (05:02 +0000)
commit61aa414e834418a257857e4755fce1ecba847f43
tree8fb005380b2a39c6aa2501d16e7f444d68fb1046
parentbd16cc646c6cedc42a9cc7c32f1c52275d63da59
[PowerPC][NFC] Add tests for some missed optimization opportunities in combineSetCC

For both operands are bool, short, int, long, long long, add the following optimization test case.
1. 0-x == y --> x+y ==0
2. 0-x != y --> x+y != 0

Review: nemanjai
Differential Revision: https://reviews.llvm.org/D53358

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@345365 91177308-0d34-0410-b5e6-96231b3b80d8
test/CodeGen/PowerPC/combine-setcc.ll [new file with mode: 0644]