summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-03-14 19:31:24 +0000
committerChris Lattner <sabre@nondot.org>2006-03-14 19:31:24 +0000
commit5271a1f9b5c4b0b6d4685eebb70b4d4f6903697b (patch)
treeadd7cecd3afd3591f933aa32f73a597b5c3cb4c1 /llvm/lib
parent2024aabcb0162247ec03625f4b4f93da5854d6da (diff)
downloadbcm5719-llvm-5271a1f9b5c4b0b6d4685eebb70b4d4f6903697b.tar.gz
bcm5719-llvm-5271a1f9b5c4b0b6d4685eebb70b4d4f6903697b.zip
add a note
llvm-svn: 26762
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/README.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/lib/Target/README.txt b/llvm/lib/Target/README.txt
index 000fdded169..c19dc7e308d 100644
--- a/llvm/lib/Target/README.txt
+++ b/llvm/lib/Target/README.txt
@@ -113,3 +113,11 @@ for 1,2,4,8 bytes.
//===---------------------------------------------------------------------===//
+This code:
+int rot(unsigned char b) { int a = ((b>>1) ^ (b<<7)) & 0xff; return a; }
+
+Can be improved in two ways:
+
+1. The instcombiner should eliminate the type conversions.
+2. The X86 backend should turn this into a rotate by one bit.
+
OpenPOWER on IntegriCloud