aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/Target/README.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/Target/README.txt b/lib/Target/README.txt
index 000fdded16..c19dc7e308 100644
--- a/lib/Target/README.txt
+++ b/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.
+