summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/README.txt
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Target/README.txt')
-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