| commit | 13794f5d01317d76ec698b43bdf1c35eea57eae5 | [log] [tgz] |
|---|---|---|
| author | Chris Lattner <sabre@nondot.org> | Fri Aug 26 18:46:49 2005 +0000 |
| committer | Chris Lattner <sabre@nondot.org> | Fri Aug 26 18:46:49 2005 +0000 |
| tree | 53985d8d39596998a82d4c9b01bd4888026f5382 | |
| parent | 52987f4f6531ffcfcc61b1319f5219f3704d426b [diff] |
implement the fold for:
bool %test(int %X, int %Y) {
%C = setne int %X, 0
ret bool %C
}
to:
_test:
addic r2, r3, -1
subfe r3, r2, r3
blr
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23089 91177308-0d34-0410-b5e6-96231b3b80d8