diff --git a/lib/Target/README.txt b/lib/Target/README.txt index 000fdded169..c19dc7e308d 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. +