For both operands are bool, short, int, long, long long, add the following optimization test case.
- 0-x == y --> x+y ==0
- 0-x != y --> x+y != 0
Paths
| Differential D53358
[PowerPC][NFC] Add tests for some missed optimization opportunities in combineSetCC ClosedPublic Authored by HLJ2009 on Oct 17 2018, 2:08 AM.
Details
Summary For both operands are bool, short, int, long, long long, add the following optimization test case.
Diff Detail
Event TimelineHLJ2009 added a child revision: D53360: [PowerPC] Fix some missed optimization opportunities in combineSetCC.Oct 17 2018, 2:16 AM Comment Actions LGTM. I like this approach of committing the test case up front so that the patch can show the differences in code gen clearly. This revision is now accepted and ready to land.Oct 19 2018, 3:38 AM Closed by commit rL345357: [PowerPC][NFC] Add tests for some missed optimization opportunities in… (authored by helijia). · Explain WhyOct 25 2018, 7:37 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 171241 llvm/trunk/llvm/test/CodeGen/PowerPC/combine-setcc.ll
|