commit | ad84a8b9be854db641a18d9559fe00b4b821b881 | [log] [tgz] |
---|---|---|
author | Li Jia He <hljhehlj@cn.ibm.com> | Fri Oct 26 06:48:53 2018 +0000 |
committer | Li Jia He <hljhehlj@cn.ibm.com> | Fri Oct 26 06:48:53 2018 +0000 |
tree | 60abb7fa4b3239716a7aa36771bd5d68c613af58 | |
parent | 61aa414e834418a257857e4755fce1ecba847f43 [diff] |
[PowerPC] Fix some missed optimization opportunities in combineSetCC For both operands are bool, short, int, long, long long, add the following optimization. 1. 0-x == y --> x+y ==0 2. 0-x != y --> x+y != 0 Review: nemanjai Differential Revision: https://reviews.llvm.org/D53360 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@345366 91177308-0d34-0410-b5e6-96231b3b80d8