From cbd3cdd2397b31a34c8af403811d06aa94149b40 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 14 Mar 2006 19:31:24 +0000 Subject: [PATCH] add a note git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26762 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/README.txt | 8 ++++++++ 1 file changed, 8 insertions(+) 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. + -- 2.34.1