diff options
author | Hal Finkel <hfinkel@anl.gov> | 2015-01-05 21:41:26 +0000 |
---|---|---|
committer | Hal Finkel <hfinkel@anl.gov> | 2015-01-05 21:41:26 +0000 |
commit | f4044b02a5c5a3aae86a131618e4b3d661ea47d5 (patch) | |
tree | 9741e9c8f893305b43f372399277b03708266eb7 /llvm/lib | |
parent | dacf057bdc8eb1c16ff99106c667e063c73bf82a (diff) | |
download | bcm5719-llvm-f4044b02a5c5a3aae86a131618e4b3d661ea47d5.tar.gz bcm5719-llvm-f4044b02a5c5a3aae86a131618e4b3d661ea47d5.zip |
[PowerPC] Remove README.txt entry
This entry has been rendered irrelevant now that we have proper CR bit
tracking.
llvm-svn: 225211
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Target/PowerPC/README.txt | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/llvm/lib/Target/PowerPC/README.txt b/llvm/lib/Target/PowerPC/README.txt index 9565ae131f8..29238fd2a55 100644 --- a/llvm/lib/Target/PowerPC/README.txt +++ b/llvm/lib/Target/PowerPC/README.txt @@ -184,40 +184,6 @@ just fastcc. ===-------------------------------------------------------------------------=== -Compile this: - -int foo(int a) { - int b = (a < 8); - if (b) { - return b * 3; // ignore the fact that this is always 3. - } else { - return 2; - } -} - -into something not this: - -_foo: -1) cmpwi cr7, r3, 8 - mfcr r2, 1 - rlwinm r2, r2, 29, 31, 31 -1) cmpwi cr0, r3, 7 - bgt cr0, LBB1_2 ; UnifiedReturnBlock -LBB1_1: ; then - rlwinm r2, r2, 0, 31, 31 - mulli r3, r2, 3 - blr -LBB1_2: ; UnifiedReturnBlock - li r3, 2 - blr - -In particular, the two compares (marked 1) could be shared by reversing one. -This could be done in the dag combiner, by swapping a BR_CC when a SETCC of the -same operands (but backwards) exists. In this case, this wouldn't save us -anything though, because the compares still wouldn't be shared. - -===-------------------------------------------------------------------------=== - Fold add and sub with constant into non-extern, non-weak addresses so this: static int a; |